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
musiclover2y ago
It works...but I'm afraid if this right approach. hmm how?...
musiclover
musiclover2y ago
Can I add setter like this ?
musiclover
musiclover2y ago
hmm yes... how to add custom setters? maybe outside of store?
musiclover
musiclover2y ago
Like this?
musiclover
musiclover2y 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
musiclover2y ago
The replier removed his comments,,, I don't understand why..