uidotdev / usehooks

A collection of modern, server-safe React hooks – from the ui.dev team

Home Page:https://usehooks.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🪲 BUG: Can't use the hooks on contextAPI file in NextJs14

ashrafchowdury opened this issue · comments

Description

I've been trying to use the hooks on contextAPI file in NextJS14, but getting a strange error (Error: useLocalStorage is a client-only hook). I'd tried multiple hooks, but neither is working.

Bug Preview

Register tsx - chat-app - Visual Studio Code 11_5_2023 12_05_56 PM

It's not a bug. The solution is described here: #218 (comment)

Here's a issue, proposing better documentation: #259