Comments (2)
Based on that note I added Backstack to my StateChange class which in your case is Flow being available via Traversal.
I think it makes sense.
from flow.
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.
from flow.
Related Issues (20)
- Documentation issues to fix for beta HOT 1
- Make sure to publish source with releases HOT 1
- No reason for setDispatcher(), setHistoryFilter() to be public HOT 1
- The purpose of MultiKey HOT 2
- Change log says "alpha2" even for "alpha3" HOT 1
- `Flow.get(context)` returns null during `Activity.onCreate` HOT 1
- State not reloaded HOT 2
- Make it clearer which end of the Flow history stack is the top HOT 2
- New way to break Flow.goBack() HOT 3
- Crash while cleaning up a transition that finished after Activity.onDestroy HOT 1
- Save view state with id = -1
- [Question] Future of Flow HOT 3
- Do not reload rest api when go back HOT 1
- ETA for 1.0? HOT 4
- help :
- Recipe for creating nested screens with Flow? HOT 1
- Is this project abandoned? HOT 4
- InternalLifecycleIntegration memory leak on P emulator HOT 1
- How to get result from previous Screen? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow.