We need the ability to prevent navigation in case the user decides to refresh the page. I was thinking we could do this w a <Prompt beforeUnload> prop that might be used in lieu of a message prop.
Related: Custom beforeunload messages are removed in Chrome 51. We should probably warn if someone tries to use both beforeUnload and message.
We need the ability to prevent navigation in case the user decides to refresh the page. I was thinking we could do this w a
<Prompt beforeUnload>
prop that might be used in lieu of amessage
prop.Related: Custom
beforeunload
messages are removed in Chrome 51. We should probably warn if someone tries to use bothbeforeUnload
andmessage
.