You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
app-route.data isn't changed when the route is not active according to the pattern. This results in false positives when only looking at the app-route.data.
Let's say we have this route, we can add an observer _observeRoutes(productData, actionData). Then check for both of the id's, where we assume that only one can be filled.
This assumption is false: the not-active route will not have an updated app-route.data, resulting in the false positive of app-route.data.id.
Live Demo
Steps to reproduce
Browsers Affected
Chrome
Firefox
Safari 9
Safari 8
Safari 7
Edge
IE 11
IE 10
The text was updated successfully, but these errors were encountered:
This is a major problem when using a subroute that expects say /category as the main page, and /category/item as the subpaths that it manages, as it completely ignores /category without this change.
This was a feature intentionally reverted while in beta because of computational cost. It would propagate down the entire routing subtree upon each change.
Seeing as there has been repeated requests for this feature, I'd be willing to merge a non-breaking change that hides this feature behind a flag (name I have made up below is crude and I welcome suggestions), so usage would be
Description
app-route.data isn't changed when the route is not active according to the pattern. This results in false positives when only looking at the app-route.data.
Example
Let's say we have this route, we can add an observer
_observeRoutes(productData, actionData)
. Then check for both of the id's, where we assume that only one can be filled.This assumption is false: the not-active route will not have an updated app-route.data, resulting in the false positive of app-route.data.id.
Live Demo
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: