News for hackers. Stuff that matters.
Re:A SoundCloud client in React and Redux by lopatin on Sunday June 12, 2016 @08:19PM (#11891014)
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.
Re:A SoundCloud client in React and Redux by davidjnelson on Sunday June 12, 2016 @09:03PM (#11891137)
Are 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.
Re:A SoundCloud client in React and Redux by brentm on Sunday June 12, 2016 @09:45PM (#11891285)
I 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.