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

fix: Move debug localStorage detection inline #592

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

franky47
Copy link
Member

@franky47 franky47 commented Jul 31, 2024

Having the localStorage detection in a separate file was causing error logs in Vitest (no issues at runtime in Next.js).

This refactors the code to be more readable and maintainable, and into a single function so the enabled switch can now be const.

More of a refactoring than a bug fix, but it reduces the bundle size a little bit, so it warrants a patch update.

Having the localStorage detection in a separate file was causing error logs
in Vitest (no issues at runtime in Next.js).
This refactors the code to be more readable and maintainable,
and into a single function so the enabled switch can now be const.
Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuqs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 10:48pm

@franky47 franky47 enabled auto-merge (squash) July 31, 2024 22:47
@franky47 franky47 merged commit 9a3c694 into next Jul 31, 2024
30 checks passed
@franky47 franky47 deleted the fix/debug-localstorage-detection branch July 31, 2024 22:49
@franky47 franky47 mentioned this pull request Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

🎉 This PR is included in version 1.17.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant