Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 613 Bytes

File metadata and controls

15 lines (10 loc) · 613 Bytes
title toc order
Navigation Blocking
false
1

Navigation Blocking

This example demonstrates using unstable_useBlocker to prevent navigating away from a page where you might lose user-entered form data. A potentially better UX for this is storing user-entered information in sessionStorage and pre-populating the form on return.

Preview

Open this example on StackBlitz:

Open in StackBlitz