question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RouterService forces model to refresh when queryParams unchanged

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Reactions:12
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ro0grcommented, Dec 10, 2018

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.

0reactions
Techn1xcommented, Dec 21, 2022

Still an issue on Ember 4.4.4 and Ember 4.9.2 😢

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found