Is it a good idea to define a max value for integer based parameter? #1339
Unanswered
ahofmeister
asked this question in
Q&A
Replies: 1 comment
-
|
I would recommend to create a custom parser: https://nuqs.dev/docs/parsers/making-your-own You can compose it with the built-in parsers for (de)serialisation, and introduce custom validation logic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a parameter which sets the quantity of something (users).
I would like to have a maximum value, so that our users can't set something like 99999999.
I would like to see this feature in nuqs, but not sure if it's a good idea to put it there or just in the application. Any recommendations?
Beta Was this translation helpful? Give feedback.
All reactions