Skip to content

Conversation

adamivancza
Copy link

I've found another bug - if changeValueImmediately is set to true it won't update the local state. Also updated componentWillReceiveProps to compare new value to this.state.value. If those differs we need to update switch. This is especially useful if switch update depends on some function which can refuse the new switch value (at least that was my use-case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant