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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this library really server safe? #333

Open
silouanwright opened this issue Mar 28, 2025 · 0 comments
Open

Is this library really server safe? #333

silouanwright opened this issue Mar 28, 2025 · 0 comments

Comments

@silouanwright
Copy link

silouanwright commented Mar 28, 2025

Image

I recently transitioned from two other hook libraries to this one, primarily due to its claim of being "server safe":

To my surprise, after implementation, I encountered an error in a Next.js application. This was unexpected, especially since other popular React libraries' "useLocalStorage" hooks do not exhibit this issue.

Moreover, the potential for this library to break in a server environment unless wrapped appropriately is not documented in the respective hooks.

Until this issue is addressed (it's been known about for 2 years), I kindly request that the "server safe" tagline be reconsidered? The number of existing issues related to this problem suggests a need to reassess the server safety claim. If a method requires undocumented wrapping to function correctly, it cannot truly be deemed server safe.

I've seen all the hacks and workarounds but it would just be more kind to state that up front so that people can make a more informed choice if they don't wish to use those.

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

1 participant