-
Notifications
You must be signed in to change notification settings - Fork 195
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
Add redux-optimist #55
Comments
Is this not already supported? Have not (yet) used it myself though. |
How can I add |
A quick search tells me that since 0.2.1 you can put So i guess something like..
But ofcourse for REQUEST and FAILURE you would have to also use optimist keys, and instead of getting the transaction id returned in a response you may want to use action or state to get it. If you got this to work, we'd be happy to hear! I am going to have to do optimistic updates too in the foreseeable future. |
@barrystaes did you ever manage to implement this? |
@mmiszy Not this specific example. And I never put redux-api-middleware in actual production use so my experience using it is/was very limited. Having todays experience i'd probably just use a ES6 promise in the called action to achieve this. |
Do you want to add support "optimistically apply actions" with module redux-optimist?
The text was updated successfully, but these errors were encountered: