Skip to content
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

Correct way to conditionally use hooks #149

Open
jonflynng opened this issue Oct 15, 2021 · 0 comments
Open

Correct way to conditionally use hooks #149

jonflynng opened this issue Oct 15, 2021 · 0 comments

Comments

@jonflynng
Copy link

Hi, we were wondering the best way to conditionally use the hooks from this library to avoid react errors like 'rendered less/more hooks than last time'. Passing in null gives the following type error, but works well:

Screenshot 2021-10-15 at 09 43 36

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

No branches or pull requests

1 participant