react-history icon indicating copy to clipboard operation
react-history copied to clipboard

Add <Prompt beforeUnload> ?

Open mjackson opened this issue 9 years ago • 0 comments

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.

mjackson avatar Aug 17 '16 23:08 mjackson