Skip to content

How to dynamically change value of selector? #14

@FaizanMuhammadSE

Description

@FaizanMuhammadSE

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions