Last active
September 24, 2017 02:18
-
-
Save twalker/81d0bdb36577f99886a20442019f425d to your computer and use it in GitHub Desktop.
app state flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch(action) (state, action) | |
+-------------+ data +------------+ +------------+ +--> +------------+ | |
| gql/bff api | +--> | Action | +--> | Store | | Reducers | | |
+------^------+ | Creators | +-----+------+ <--+ +------------+ | |
| +------------+ <-+ | (newState) | |
+--------+ fetch(url, query) | | | |
| connect | |
| | | |
| | | |
| +-----v------+ | |
onEvent(() => { + | Connected | select(state) | |
actionCreator(payload)| Component | actionCreators | |
)} +---+--------+ | |
| | |
| +------------+ | |
+--> Component | + | |
+------------+ | + | |
+-------------+ | | |
+-------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The implementation of Redux flow in the app. Can easily be edited with http://asciiflow.com