-
Notifications
You must be signed in to change notification settings - Fork 111
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
onUnload function not working properly #130
Comments
4 tasks
@rmariuzzo can i be assigned to this? |
Yes |
Hey @rmariuzzo can I also join this project |
you could use onLoad method and watch the closed value by interval created by @ilhantekir |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@AdityaKirad which browser and React version are you using? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the onUnload function triggers as soon as the new window opens up so the problem is that I have this state
and this button
so as I click on the button the state of popup become true and the new window pops up but since the
onUnload
function triggers before new window unload so the state of popup become false immediately and the popup closes but when I removedonUnload={() => setPopUp(false)}
and clicked on the button the new window opens up and the it doesn't closes theonUnload
function should triggered after the new window unloadThe text was updated successfully, but these errors were encountered: