Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃 BUG: Can't use the hooks on contextAPI file in NextJs14 #261

Closed
ashrafchowdury opened this issue Nov 5, 2023 · 1 comment
Closed

Comments

@ashrafchowdury
Copy link

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

@ottovw
Copy link

ottovw commented Nov 5, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants