You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With react-router there is the prompt component that prevents a user to navigate to another page (e.g. when there are unsaved changes in a form). It would be nice to implement a functionality like that.
The text was updated successfully, but these errors were encountered:
I'd say a good implementation would be react-router where the user is prompted with a message when a certain state is entered. The prompt component is then rendered like:
<Prompt when={formIsHalfFilledOut} message="Are you sure you want to leave?" />
Ideally, message would accept not only a string but also a function
Hey! :)
With react-router there is the prompt component that prevents a user to navigate to another page (e.g. when there are unsaved changes in a form). It would be nice to implement a functionality like that.
The text was updated successfully, but these errors were encountered: