You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have some questions that maybe could be good to add in the README.
I saw that its compatible with useEffect and useState, and it opens me the doubt if there is some others which is not compatible about? what are the caveat of the lib in terms of compatibility or not able to use in specific scenarios depending of your presentational component?
thanks
The text was updated successfully, but these errors were encountered:
Hi @jjalonso, I haven't run into problems with any other React hooks, I included useState in the docs because the usage might not be intuitive, and included useEffect because there was some confusion in #8. If you have a specific case that could use extra documentation I'm happy to consider it, but I think other hooks should be pretty straightforward.
Okay now is more clear, also I was thinking and trying to find any clue if was possible to pass the result of one hook to another hook.
One of my use cases is that I have a hook that returns some object, I also have another hook on the same composition, at the same level, where I need to access the object returned from the first hook mentioned.
This translates to a real case with react hook form, first hook create and return form methods (useForm) and another hook handle some useWatch, use effect and data filtering...
To be able to watch on this second Hook i need to use some methods and prop like "control" that was returned by the first mentioned Hook.
If that is not possible to do on the same composition, the only solutions could be that the first hook is used inside the others hooks or uses a nested component and composed there as a child...
Thanks for the support. I hope this thread also solves some doubts on other users.
Hi, I have some questions that maybe could be good to add in the README.
I saw that its compatible with useEffect and useState, and it opens me the doubt if there is some others which is not compatible about? what are the caveat of the lib in terms of compatibility or not able to use in specific scenarios depending of your presentational component?
thanks
The text was updated successfully, but these errors were encountered: