SwitchSelector is not allowing me to set value dynamically(by dynamically I mean fetching data from database and then setting value of selector according to data arrived from database),
I have to hardcode initial value, after that initial value will not reflect changes as state of functional component changes.
I know it is mentioned in documentation that initial prop is just for initial render, but there should be some way to set value of switchselector on state changings...
SwitchSelector is not allowing me to set value dynamically(by dynamically I mean fetching data from database and then setting value of selector according to data arrived from database),
I have to hardcode initial value, after that initial value will not reflect changes as state of functional component changes.
I know it is mentioned in documentation that initial prop is just for initial render, but there should be some way to set value of switchselector on state changings...