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 Oct 25, 2024. It is now read-only.
Interesting dispatchers redirect, which means that they need access to the Flow instance. That actually be tricky to get, since the only public API is via the Context, and who says that the dispatcher is anywhere near there?
I wonder if we should include a back pointer to the Flow in Traversal? Or add a Flow parameter to the Dispatch method?
The text was updated successfully, but these errors were encountered:
I put stuff like redirects in a router that sits a little closer to the context and leave my dispatcher to more disptach-y things like making sure info about traversals for different types of keys gets pumped through the chain of routers and transitions get executed on the view controller corresponding to the type of key coming in. But not a bad idea. It would also be nice to have a formal api for a dispatcher to "observe but drop" a traversal. Perhaps a new method on the completion like ignore()? When a traversal is ignored it's not added to the history however the dispatcher may choose to say start an Intent. That way business logic can inform the dispatcher via flow they wish to go somewhere out of your app without pushing the activity reference all the way down to wherever that thing might be sitting.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Interesting dispatchers redirect, which means that they need access to the Flow instance. That actually be tricky to get, since the only public API is via the Context, and who says that the dispatcher is anywhere near there?
I wonder if we should include a back pointer to the Flow in Traversal? Or add a Flow parameter to the Dispatch method?
The text was updated successfully, but these errors were encountered: