Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
feature request: pass navigationInstruction to canDeactivate #493
I'm submitting a feature request
Please tell us about your environment:
So I tried simply passing the navigationInstruction into the call to canDeactivate as you can see here but at this point in the pipeline calling getAllInstructions() on this navigationInstruction doesn't return all instructions, it only ever returns one even when there are two child routers.
Next I tried moving LoadRouteStep in front of CanDeactivateStep in the PipelineProvider (here), and now I get exactly what I need in canDeactivate - three navigationInstructions when there are two child routers.
I think LoadRouteStep ends up loading the actual components too though, right? If that's the case this isn't the right approach, and I'm not sure where to go next.
Can I get some guidance on this please?