RouterService forces model to refresh when queryParams unchanged
See original GitHub issueI have a query param defined in the controller and set it up to refreshModel
in the route.
Then I inject the router
service to the component and trigger a transition just with a sub-route name(no passing query params).
Expected: Transition is complete. Parent route’s model is not reloaded.
Actual: Query param treated as changed which causes a parent route to reload.
Reproduction: https://ember-twiddle.com/efda3c9e57835c987404a8f5968c7579?openFiles=routes.application.js%2C&route=%2Fin
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Silly query params question - Learning Team - Ember.JS
I think I see RouterService forces model to refresh when queryParams unchanged · Issue #16349 · emberjs/ember.js · GitHub in my application ...
Read more >NEXT JS - How to remove Query Params - Stack Overflow
This will cause a re-render but will not refresh the page per se. The above solution will remove all query parameters from the...
Read more >Reloading Components when change in Route Params
Angular does not allow to reload the component the when the parameter in the route changes. Eg: Take our route as /user/:id the...
Read more >Router tutorial: tour of heroes - Angular
forRoot() in the AppModule imports array makes the Router service available everywhere in ... Next, update the app.module.ts file by removing RouterModule.
Read more >ember-router-service-refresh-polyfill - npm
It returns a Transition that will be resolved once the refresh is complete. All resetController, beforeModel, model, afterModel, redirect, and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve just verified it against ember-source@3.6(cause its release notes say:
Final stage of the router service RFC (see emberjs/rfcs#95
) and the issue seems to be persited.Here is a repo with reproduction for ember-source@3.6 if helpful.
Still an issue on Ember 4.4.4 and Ember 4.9.2 😢