react-jhipster icon indicating copy to clipboard operation
react-jhipster copied to clipboard

update libs, removes useForm and useStates

Open Tcharl opened this issue 3 years ago • 1 comments

react hooks calls are now banned. generator should take in charge the form configuration

Tcharl avatar Aug 28 '22 11:08 Tcharl

Still, I'm totally unable to fix the tests: it contains way too much react specialties that made me banged my head over a wall. Also, removing the react use* should be completely done (there's always a bit of it in the form class).

I just wanted to discuss a bit of the feature & code before. @deepu105 ?

Alternative would be to remove all references to this form lib: a PoC has been done on one form here: https://github.com/jhipster/generator-jhipster/pull/19560/files Doesn't seems sooo different in the end

Tcharl avatar Aug 28 '22 13:08 Tcharl

sorry seems like I was too late to respond. I think it would be ok to remove the form from the lib if its causing too much issues. My original idea was to provide some simple wrappers so that generated code is less verbose

deepu105 avatar Oct 09 '22 20:10 deepu105