I am trying to implement a hook that prevents users from 'unintended' route change such as back button or reload. I am using react-router v3, so <Prompt />
in react router v4 does not work for me.
I have looked into setRouteLeaveHook
but it does not handle accidental reload action. Any suggestion would be appreciated :)