Is this right store?
I made store which has multiple pages, and selectedPageIndex like this picture.
I get selected page's value, and set selected page value like this.
Is this correct?
7 Replies
It works...but I'm afraid if this right approach.
hmm how?...
Can I add setter like this ?
hmm yes... how to add custom setters? maybe outside of store?
Like this?
But this way is not feasible, If i have a lot of properties in pages...Should I make all setter function...?..
I want to just omit 'state.selectedPadIndex' , and want to get auto completion of property name by setState
is this thread resolved?
cannot really follow the conversation becasue some of the messages seems deleted
is it fine to close this?
The replier removed his comments,,, I don't understand why..