Please sign in to comment.
feat(router): add pathParamsOrQueryParamsChange mode for runGuardsAnd…
…Resolvers (#27464) This option means guards and resolvers will ignore changes to matrix parameters. Guards and resolvers will be rerun when the path changes, when path parameters change, or when query parameters change. The primary use case for such a mode is when updating the UI and getting the URL to be in sync with local changes. For example, if displaying a sortable table, changing the sort direction is often handled by the table itself. But you would want to update the URL to be in sync with what's being displayed to the user. As long as the table sort direction is stored as a matrix parameter, you can use this option to update the URL without causing the overhead of re-running guards and resolvers. Related to #26861 #18253 PR Close #27464
- Loading branch information...
Showing with 48 additions and 5 deletions.