Navigation blocking but ignoring sibling route changes
I have a route that contains a number of child routes. I want to use the
Basically, I want this behavior:
<Block /> component to block navigation when navigating away from the parent route (to display a save warning modal). The problem is that this also blocks navigation between the child routes, which is not what I want. How do I do this? I can't find an obvious solution.Basically, I want this behavior:
/parent/childA to /parent/childB = don't block/parent/childA to /some-other-route = block