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

The modal still visible after remove #168

Open
lyquocphong opened this issue Aug 29, 2024 · 0 comments
Open

The modal still visible after remove #168

lyquocphong opened this issue Aug 29, 2024 · 0 comments

Comments

@lyquocphong
Copy link

lyquocphong commented Aug 29, 2024

I faced the problem that after call modal.remove(), the modal is still visible even when the visible is false (i log the modal object from useModal). But when I use modal.hide() the modal is disappear. It is so confusing for me. Anyone can explain for me ?

Another question I would like to ask is that because we nest the App in ModalProvider so each time we show or hide or remove modal, the context change. Will application be rerendered every times ?

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