Skip to content

crutchcorn/react-router-use-blocker-exploration

Repository files navigation

React Router v6 useBlocker App-Wide Exploration

This repo demonstrates how you can have an app-wide usage of useBlocker to prevent navigation away from the page when there are unsaved changes.

A count showing 6 and a "Changes you made may not be saved" dialog from Chrome

About

A demo of an app-wide useBlocker hook using Redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published