A save reminder component for react router
Thanks to this PR: #14.
Adding conditional prompt function to allow rendering Goodbye on some conditions
Please check the README for the instructions.
Thanks to #11 for this minor fix.
Thanks for the discussion from #8, I made a improvement by #9
pass
function to handlePass
. It allows you to do additional actions (of course, you can wrap the handleOk
or handleCancel
with your own higher-order function!).alertBeforeUnload
onbeforeunload
event to the window object that detects the page to popup an alert before you leave without saving data changes.alertMessage