-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating Value Dynamically #1
Comments
refComponent.forceUpdate(newColor) |
hezhii, Hi cant dynamically change the value of the slider. when a state changes then according to the value of that state the slider value and slider fill should also change. Kindly make it ASAP..!!! |
add componentDidUpdate(prevProps, prevState, snapshot) {
if (prevProps.value !== this.props.value) {
this.setState({value: this.props.value});
}
} |
I feel that @Miroxyz 's solution here should be merged into prod? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using your control in a project but when I set the value as this.state.value and update this.state.value via another means (not using the slider) the thumb position isn't updated. How can I make this happen?
The text was updated successfully, but these errors were encountered: