4 ms·
For basic forms, where you're not doing something weird, why would intermediate form state need to live in Redux? Local React state seems best for that.
by lopatin 10y ago
For basic forms, where you're not doing something weird, why would intermediate form state need to live in Redux? Local React state seems best for that.
- davidjnelson 10y agoAre there any cons to this approach? For me, having to implement setstate manually, not having full undo/redo/time travel debugging as an option/not being able to rehydrate the app from any state snapshot, along with the cognitive overhead of keeping state in sync in two places, one of which is mutable, are the big downsides.
- brentm 10y agoI agree with this. I've tried redux-form and just manually handling it with Redux but letting the form data live in the form's component state felt the most clean to me.