silverstripe-admin icon indicating copy to clipboard operation
silverstripe-admin copied to clipboard

NOTE: Redux Form's author advises to use React Final Form instead

Open micschk opened this issue 2 years ago • 1 comments

(probably already on the radar but leaving here just in case it was not)

On trying to update some modules to work with react rendered forms I noticed the below info on the Redux Form repo

⚠️ ATTENTION ⚠️

If you're just getting started with your application and are looking for a form solution, the general consensus of the community is that you should not put your form state in Redux. The author of Redux Form took all of the lessons he learned about form use cases from maintaining Redux Form and built 🏁 React Final Form, which he recommends you use if you are just starting your project. It's also pretty easy to migrate to from Redux Form, because the <Field> component APIs are so similar. Here is a blog post where he explains his reasoning, or there are two talks if you prefer video. Formik is also a nice solution.

The only good reason, in the author's view, to use Redux Form in your application is if you need really tight coupling of your form data with Redux, specifically if you need to subscribe to it and modify it from parts of your application far from your form component, e.g. on another route. If you don't have that requirement, use 🏁 React Final Form.

Just in case Silverstripe is using davidkpiano/react-redux-form instead(?), that shows a similar notice:

⚠️ This project is in maintenance mode only. Please consider using Formik instead.

Adding this issue here, closing previously opened issue on silverstripe/silverstripe-framework.

micschk avatar Nov 14 '21 06:11 micschk