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
musiclover
musicloverOP2y ago
It works...but I'm afraid if this right approach. hmm how?...
musiclover
musicloverOP2y ago
Can I add setter like this ?
musiclover
musicloverOP2y ago
hmm yes... how to add custom setters? maybe outside of store?
musiclover
musicloverOP2y ago
Like this?
musiclover
musicloverOP2y ago
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
thetarnav
thetarnav2y ago
is this thread resolved? cannot really follow the conversation becasue some of the messages seems deleted is it fine to close this?
musiclover
musicloverOP2y ago
The replier removed his comments,,, I don't understand why..
Want results from more Discord servers?
Add your server