Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app(rework): dataflow #163

Open
axtho opened this issue Nov 12, 2017 · 0 comments
Open

app(rework): dataflow #163

axtho opened this issue Nov 12, 2017 · 0 comments

Comments

@axtho
Copy link
Contributor

axtho commented Nov 12, 2017

currently we have a "fetch from HTTP" => "save in store" strategy
In order to accommodate real scenarios and to make rehydration easier we should rework the dataflow like this:

ACTION => attempt HTTP call => (onError: => INSERT ACTION into Sync Queue) => (on Success) => update ClientDB (localforage, RXDB, ngrx/db, PouchDB ...) => UPDATE STORE

This enables offline scenarios and data syncing by replaying the actions from the SyncQueue ({action: "", payload: ""})

@axtho axtho added this to the Backlog milestone Nov 12, 2017
axtho added a commit that referenced this issue Nov 19, 2017
@axtho axtho mentioned this issue Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant