React-redux-form: integration with redux-optimistic-ui

Created on 19 Dec 2017  路  3Comments  路  Source: davidkpiano/react-redux-form

I've been trying to integrate both libraries to create optimistic forms using this awesome library.
Since redux-optimistic-ui is wrapping the reducer state with 'current' wrapping it again with combineForms creates a form with current prop.

In my

I hooked into myReducer.current, it does get the current values, but when I get into revert action, my beforeState has already changed and it won't revert to the correct state.

did anybody managed to do some optimistic updates (with revert/commit) using react-redux-form?

Thanks!

question

Most helpful comment

hey @davidkpiano I think the combination of those packages may be useful for many. I managed to get it to work. I'll post a small how-to here soon! Thanks again!

All 3 comments

I'm not familiar with redux-optimistic-ui. I'll reopen this if you have a working code example and can demonstrate that something with react-redux-form is preventing you from doing what you want.

hey @davidkpiano I think the combination of those packages may be useful for many. I managed to get it to work. I'll post a small how-to here soon! Thanks again!

Awesome to hear @mrsufgi !!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikkelwf picture mikkelwf  路  3Comments

stutanne picture stutanne  路  4Comments

robinspark picture robinspark  路  4Comments

dstudzinski picture dstudzinski  路  3Comments

zabojad picture zabojad  路  3Comments