-
Hey there! I installed the v6.7.0-pre.3 and use the gist detailed in this comment to implement usePrompt. I was wondering if I can replace the window.confirm from the useBlocker with an async function, because I already have a modal system in my app. I tried to figure in the hook code, but this does not seem possible. Is there any reason that it can't work with async function ? (Maybe usage of before unload or something like this) Thanks ! |
Beta Was this translation helpful? Give feedback.
Answered by
machour
Jan 16, 2023
Replies: 1 comment 1 reply
-
This is not possible, see Chance's comment here: #9709 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
machour
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not possible, see Chance's comment here: #9709 (comment)