We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
modal
Came across this issue in our app, changing the modal prop between true or false causes a crash with this error:
Rendered fewer hooks than expected. This may be caused by an accidental early return statement.
Discovered it's a cause of having the useCallback hook being executed after the conditional return: https://github.com/emilkowalski/vaul/blob/main/src/index.tsx#L813
useCallback
The text was updated successfully, but these errors were encountered:
++ I just ran into this issue
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Came across this issue in our app, changing the modal prop between true or false causes a crash with this error:
Discovered it's a cause of having the
useCallback
hook being executed after the conditional return:https://github.com/emilkowalski/vaul/blob/main/src/index.tsx#L813
The text was updated successfully, but these errors were encountered: