useLocalStorage is a client-only hook error on next.js project
vinaceos opened this issue · comments
I'm using useLocalStorage on my component wich is marked as "use client"at the top but I keep receiving the error below
⨯ node_modules/@uidotdev/usehooks/index.js (613:8) @ Error
⨯ Error: useLocalStorage is a client-only hook
at useLocalStateReducer (./components/shared/ListasProvider.js:46:108)
at ListasProvider (./components/shared/ListasProvider.js:81:32)
ok, im using the component ListasProvider at the wrong place