Skip to content

Fix: Type error when using Slider with props as ref #369

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

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

BartoszKlonowski
Copy link
Member

This pull request fixes #321
It introduces new type that is used as a type of optional ref value.

Root cause of the type error was that when Slider is used for non-web, the props given as rest (see the repro example) are treated as ref object, which does not meet the type specified for web implementation.
To keep the web implementation safe within this fix, new type keeps it along with the type deduced for props object ref.

@BartoszKlonowski BartoszKlonowski merged commit 68a9de1 into main Apr 20, 2022
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.

Slider type error
1 participant