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