Hooks usage error
PuruVJ opened this issue ยท 5 comments
Hi
I've been getting this error when trying to use restater hook
Source: https://github.com/PuruVJ/macos-web/blob/feat/dock-item-component-and-list/src/components/dock/Dock.tsx#L12
The provider is here: https://github.com/PuruVJ/macos-web/blob/feat/dock-item-component-and-list/src/views/desktop/Desktop.tsx#L17
The error is happening only with restater call, as replacing useStore
with useState
is working perfectly fine.
I checked if this is the issue: https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react
and downgraded down to 16.14.0 from 17.0.1
Still getting the same error.
Please help
Hi @PuruVJ ๐
Thanks for creating this issue.
Nice catch!
Try using v. 0.0.12.
This issue should be solved now.
Wow Really quick response. trying it out.
Works perfectly. Thank you for resolving so fast.
Can I ask what was the exact issue?