47ng / nuqs

Type-safe search params state manager for React frameworks - Like useState, but stored in the URL query string.
https://nuqs.47ng.com
MIT License
4.86k stars 104 forks source link

fix: Log an error in development if URI size of 2000 characters is exceeded. #747

Closed niklasbec closed 1 week ago

niklasbec commented 2 weeks ago

As discussed here.

Error logging for when a user stores more than 2000 characters of state in a URI.

https://github.com/user-attachments/assets/c6f42fc3-c3e6-485e-b73f-39955ffe9f44

vercel[bot] commented 2 weeks ago

Someone is attempting to deploy a commit to the 47ng Team on Vercel.

A member of the Team first needs to authorize it.

niklasbec commented 2 weeks ago

@franky47 wasn't to sure about the placement of the log, let me know.

vercel[bot] commented 1 week ago

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 Nov 12, 2024 1:46pm
niklasbec commented 1 week ago

@franky47 I refactored according to your remarks, please have a look if this works for you.

github-actions[bot] commented 1 week ago

:tada: This PR is included in version 2.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: