Any ideas on how to handle custom route reuse? #24
Replies: 2 comments 2 replies
-
@gili-lumigo try to help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok I got it here: benjamin-thomas/angular-bind-query-params-demo@626a2a8 In a nutshell I did have to implement two extra life cycle hooks to solve that syncing problem. The stackblitz URL is update if you want to have a look. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm submitting a...
Current behavior
When implementing a custom route reuse strategy, syncing breaks on route reuse. There doesn't seem to be an easy solution to this problem.
Expected behavior
I'm submitting this as I would like your input as the library author. You could have an idea that I'm not seeing at the moment.
@gili-lumigo I'd like your input too since you've just implemented a related feature.
Minimal reproduction of the problem with instructions
Please go to: https://angular-ivy-vrpb4j.stackblitz.io/form
Then:
At this stage, you don't see the annoying slow request (that's the benefit of reusing this route). But unfortunately the syncing is broken (until each form control gets retouched).
What is the motivation / use case for changing the behavior?
At this stage, the form should either be reset because no params are set. Or the URL should reflect the current form value from the reused route.
Environment
Please see the stackblitz link. Repo is here: https://github.com/benjamin-thomas/angular-bind-query-params-demo
Beta Was this translation helpful? Give feedback.
All reactions