Possible to avoid console warning with usePrompt
?
#10292
Unanswered
corymharper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In
v5
I avoided the "Only one prompt at a time" warning by not rendering the prompt in those situations where otherwise multiple would be present. However, there is noPrompt
element now, onlyusePrompt
. You can not conditionally call a hook, so I've just added the conditions to prevent the prompt to thewhen
option passed tousePrompt
. However, even though more than one prompt will never be used at the same time, I still get the warning in the console. It's not harming anything for the warning to be present, but I like to keep the console as clean as possible to avoid reading too many irrelevant lines while debugging. Is there any way I could avoid this console message currently?Beta Was this translation helpful? Give feedback.
All reactions