Do not call React hooks inside other hooks or conditions
iagobruno opened this issue · comments
My app is complaining in the console about a hooks error:
But I went to investigate and my components are following the rules for hooks described in the React documentation. I looked deeper and I discovered that the errors are in your package, specifically in these lines:
Lines 71 to 74 in 4f3a562
Lines 12 to 15 in 4f3a562
Lines 18 to 20 in e682221
Lines 77 to 79 in e682221
I tried to fix it for you but you're going to have to rewrite a part of the code.
Hello, should be fixed now with v1.0.0 (warning appeared in v16.8.0 of React).