-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
Custom hook and strange warnings #16526
Comments
I'm guessing you're doing something like |
Oh, I see.
It makes sense to me. If you think is a good idea, I can help with a PR in the coming days. Just let me know. |
Sure, a PR sounds fine. |
Closing since the fix landed. Thanks @brunoscopelliti! |
I've a question about a behaviour that appears strange to me.
I am writing a custom hook.
It works fine.
But if I try to rewrite
False
, andTrue
usingsetState.bind
I get the following warning in console.The warning:
Is this the expected behaviour?
Why is that? The two snippet appear equivalent to me.
The text was updated successfully, but these errors were encountered: