Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

State accessor for nested state? #24

@grofit

Description

@grofit

I have a state object like so:

state: {
   something: {
      foo: 1
   }
}

However if I try to create a getter to foo like so:

@State("something.foo")
public foo;

It doesnt do anything, I assume because it doesnt realise the . is meaning look in a child element, so is this a valid use case or a better approach to handling complex state objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions