ForbesLindesay / redux-optimist

Optimistically apply actions that can be later commited or reverted.
MIT License
776 stars 39 forks source link

list of uncommitted actions #10

Open eugen35 opened 8 years ago

eugen35 commented 8 years ago

Hello, suppose that any app gives state from server and some time works offline and uses for offline work - redux-optimistic actions. There are 2 possible situations: 1) If after any time period without closing client it will reconect to the server, - some callbacks will be run and some actions committed or reverted - good 2) If after any time period without closing client it will has no ability to reconnect to the server, i would like to save state and data about not committed/ not reverted actions. Is this the way to take this info (about state and these not finished actions) using redux-optimist? So later (in some days) i can reestablish the state (from client side) with the list of uncommitted actions and reconnect to the server and become some callbacks (to commit or revert unfinished actions)?

oluckyman commented 8 years ago

I’m interested in the same question. @eugen35 how did you solve that problem finally?