Autocomplete First Attempt (Not Working Yet)#235
Conversation
Autocomplete First Attempt (Not Working Yet)
|
This would be great 😮 . I'm a bit low on time right now, but in a few weeks I think I can try to help. (Btw, maybe you should mark this as a draft PR?) |
True that. I forgot about that feature. |
|
I started to look into this to see if I could help contribute with the missing components and it appears to me that the translation from React MUI to SUID is not as simple as just running the I also notice that codemod does help but a lot of the code necessary to make the Autocomplete manage its internal states relies on the With the latest material-ui-5.5.0 I tried, we have a few new hooks: Anyways, is there another set of guidelines we could read to help contribute more effectively to this project? Also, is there a quick way to test the component in isolation while applying changes? Thanks! |
I have a personal project in which I would like to use MUI's
Autocompletecomponent. So I decided to try to make a contribution to this project. However, this specific component seems very challenging.This is not working at this point, and I left it this way so hopefully someone sheds some light on the following questions.
pnpm codemod mui2suid --package-name material --name Autocompletein order to generate the code for theAutocompletecomponent, but the files are not generated, despite my logs saying they were:useAutocomplete's dependence on things likeuseEventCallback,useControlled,useEnhancedEffect, etc. Is there a way for me to convert those viacodemod mui2suid?pnpm codemod mui2suid --package-name utils --name useEventCallbackfor example, but got this:Due to my limited expertise, could someone help me on how to transpile from React to Solid the following examples? I think they might help other future contributors as well.
codemod mui2suidfunction foruseEnhancedEffect/useLayoutEffectbased on this Ryan Carniato's comment?useEventCallbacktranspiles to... totally unnecessary?useControlled, is it basically simply eliminatinguseCallback; transforminguseRefs tolet; anduseStateto acreateSignal?