-
Notifications
You must be signed in to change notification settings - Fork 260
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
Fix #179 : value not being updated on change #182
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks for the contribution!
@@ -167,6 +167,7 @@ const RCTSliderWebComponent = React.forwardRef( | |||
const containerSize = React.useRef({width: 0, height: 0}); | |||
const containerRef = forwardedRef || React.createRef(); | |||
const [value, setValue] = React.useState(initialValue || minimumValue); | |||
React.useLayoutEffect(() => updateValue(initialValue), [initialValue]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the lint error then we can merge.
@Sharcoux Thank you for those PRs we'd like to merge them in - could you take a look at lint issues? |
Summary:
Fix issue #179
Test Plan: