-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
What problem does this feature solve?
http://jsfiddle.net/b7f4dpkg/10
- click 'foo'
- click 'back'
you will see how computed valuetestParamchanges bywatch
when go to foo, testParam.value === 'queryParam'
when go back to the first page, testParam.value === null
I know why this value becomes null --- it shows the next route query value.
But this is not in common sense.
Usually, the query value use in this view page only for current scene.
For example. the edit page will show edit when query.id !== null, will show create when query.id === null
This scene will turn this page to create when leave this page
What does the proposed API look like?
Should not load new query value when the previous view haven't be deactivated (instance.isDeactivated)
Metadata
Metadata
Assignees
Labels
No labels