Skip to content

update value #8

Description

@maartenvandillen

Hello!
I would like to be able to update the value of the switch other than the initial value ("active" prop). My initial value comes from my state and when I change it I would like the component also to reflect the new value. I think it can be solved using componentDidUpdate which seems to be missing right now. I tried myself but the component got confused about its internal state and rendered incorrectly. I'm on v1.0.2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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