Server-driven routing behaviour #164
domchristie
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
|
Compound presentations aside, is there anything here that can't be done with custom path configuration in application code? |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
No. I suppose the aim is to address confusion with the current API and enhance the out-of-the-box features. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This stems from #130
When using server driven routing, the framework will always dismiss a modal (if present), meaning it's not possible to navigate a modal navigation stack:
/recede_historical_locationdismisses the modal and pops the main stack/refresh_historical_locationdismisses the modal and reloads the page on the main stack/resume_historical_locationdismisses the modalIn order to support server-driven modal navigations, how about the following:
/pop_historical_locationpops the current stack/reload_historical_locationreloads the page on the current stack/resume_historical_locationdismisses the modal (as before)/dismiss_and_pop_historical_locationdismisses the modal and pops the main stack (supersedesrecede)/dismiss_and_reload_historical_locationdismisses the modal and reloads the page on the main stack (supersedesrefresh)/recede_historical_locationfor backwards compatibility/refresh_historical_locationfor backwards compatibility(
reloadis used becauserefreshis currently used)Thinking about the implementation of this, it might be cool to enable "compound"
presentationvalues like so:{ "rules": [ { "patterns": [ "/dismiss_and_pop_historical_location" ], "properties": { "presentation": "dismiss pop" } }, { "patterns": [ "/pop_and_reload_historical_location" ], "properties": { "presentation": "pop refresh" } } ] }This would require adding a new
dismisspresentation value to dismiss a modal if present.Beta Was this translation helpful? Give feedback.
All reactions