79656278

Date: 2025-06-06 17:36:25
Score: 1
Natty:
Report link

In the end, the answer was useBlocker but that required re-factoring the route handler to createBrowserRouter and directing the page content through an <Outlet /> in the RootLayout instead of having each page produce it's own child <RootLayout>

A bunch of work, but it stops exit before context is lost.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: James Newton