-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[docs] Document mui-rff #17943
[docs] Document mui-rff #17943
Conversation
FFMUI is outdated, untested. MUI-RFF is modern and jest tested. Happy to keep FFMUI in there, but it just seems weird to recommend it at this point given that it isn't even based on MUI4. Thanks for making a great project.
No bundle size changes comparing 1e4d2db...5cee893 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing the form integration forward. I think that we should update the official demo https://codesandbox.io/s/9ywq085k9w too. Could you have a look at it?
It will help with #15585
Just want to clarify why I approved: It's mainly about dropping final-form-material-ui because it's not compatible with v4 and the maintainer hasn't even responded to this issue which was opened in july. |
Same motivation, we need a package that is actively maintained 👍 @lookfirst I have spent some time to look at your package. I have found the following blockers:
|
Thanks for the feedback. I recognize my stuff is definitely early. Hoping to get some project visibility, so that I can attract some help to work on it.
Thanks for the feedback. WIP. |
Edit, nevermind! I figured out something cool.... code isn't up yet, but I'm happy with it... you'll see... =) |
@lookfirst Thank you for taking the time to consider my feedback. At the end of the day, the community will decide what works best for them. Considering that if we had to focus on third-party form integrations, we would start with the most important library: formik. I propose that, as the core team, we optimize for the solution that requires us the less time involvement: I propose that we link final-form-material-ui and mui-rff in the documentation. We should be able to let organic growth tells us, in the next few months, which of the two libraries to retain, as ultimately, we should aim for a single encouraged adapter (per form libraries). @lookfirst Does that work for you? |
I will note that while formik is more 'popular', my prior experience with it when evaluating frameworks was a bit disappointing. RFF is pretty well done. (...talk about formik removed) ... then you say this...
Hmm... not sure I understand the connection to formik in this regard. Care to explain? I'm totally fine including both, but be aware that FFMUI is effectively abandoned, so I think that should be noted so that people don't waste their time (like I did). FYI, I'm working on a new codesandbox based on your original FFMUI one right now, which is helping me find a couple bugs and see what else needs to be implemented. It is coming along nicely and I should have it done in a few more hours. I'll update here when done. |
After a huge amount of work today... I have a codesandbox for you... they now both render exactly the same way. Mine: https://codesandbox.io/s/react-final-form-material-ui-example-tqv09 Sorry, I can't figure out how to get a shorter url for my codesandbox. =( I've fixed all the dependencies, removed lodash and datefuns and figured out how to handle errors uniformly. The only difference is the way the components are used, which I'd argue is a lot simpler now since it doesn't require learning both API's just to get started. Todo is more example documentation on the readme, but between the sample codesandbox and example website, I'd say things are pretty well covered now. |
Well done! I have included formik in the discussion so we don't forget what our priorities should be. To be clear on the "one adapter", it's one adapter perform library. I think that we should link both so we can let the developers decides what works best for them. I have abandoned projects for years and yet, some people still find value in them. To be honest, I don't think that these links are than much important. I expect most people to run a search query on Google before going with one option. |
This page is how I found out about RFF. I'm really well versed in finding projects too. Formik dominates the top, but it is far from the best. RFF solves a lot of the rendering performance and typescript problems that formik has. But 🤷♂ up to you.... I'm fine either way. Just glad you're including my stuff. Thanks. |
Also note that FFMUI is getting around 7.5k downloads / week on npm. I know those numbers are pretty inflated (my project is showing a couple hundred and nobody knows about it), but at those numbers, people must be using it... providing something that is more modern and tested, is a good thing. |
I just noticed the LOC of our codesanboxes... Original is 327 and mine is 201. Not a bad reduction! |
@oliviertassinari Ok, I added api docs to the README. So that completes all of the things that you requested *! =)
|
@lookfirst Thank you so much for caring about this form integration issue. I think that the community would benefit from using form libraries more often. |
I have created a reminder to have a look back at this topic in 3 months. |
@oliviertassinari Thank you. |
@oliviertassinari I updated the demo to highlight one real performance benefit of RFF... it is quite telling to see the render count in realtime... if you're ever thinking of using formik, make sure it doesn't fail the render test... it is imho, a much better solution than formik's fastfield... |
FFMUI is outdated, untested.
MUI-RFF is modern and jest tested.
Happy to keep FFMUI in there, but it just seems weird to recommend it at this point given that it isn't even based on MUI4.
Thanks for making a great project.