-
|
We have some web apps that get sent search params from our ios/android apps but due to legacy reasons they send different casing on the keys. Currently we manually handle that by preprocessing the search params in the browser and lowercasing all keys. I was wondering if theres any way to natively support this in nuqs? It seems we'd need to write a manual adapter for this - thought processSearchParams would be the key but I think it only runs on the write path but there isn't something along the lines of "pre-process" to change them before passing through nuqs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This sounds like a middleware concern: capture your URLs, run .toLowerCase on the keys, then pass it back to the application in a redirect. |
Beta Was this translation helpful? Give feedback.
This sounds like a middleware concern: capture your URLs, run .toLowerCase on the keys, then pass it back to the application in a redirect.