Router transition.retry
with dynamic segments and refreshModel
queryParams causes unexpected error
#16992
Labels
transition.retry
with dynamic segments and refreshModel
queryParams causes unexpected error
#16992
Seems related to #10945.
My use case is: when a user tries to navigate with an expired token (by leaving the window open long enough) the API calls will fail with a unauthorized error. We added some logic to the Applications's error action to catch this type of error, re-authenticate the user and retry the transition after the authentication. The problem is that when I try to
transition.retry()
to a route with dynamic segments and query parameters withrefreshModel
, it will fail with the below error:If I set my query param to
refreshModel: false
, it works fine.Here's a reproducible twiddle: https://ember-twiddle.com/e25fc434b6e1c1627e553b8120203655?openFiles=routes.dynamic-segment.js%2C
You can see the error when clicking on the 'Dynamic segment with query param' link. If you change the
refreshModel
tofalse
on /routes/dynamic-segment.js it works.Any help is appreciated. Thanks!
The text was updated successfully, but these errors were encountered: