Replies: 1 comment
-
Seems it work when I dynamically change values from within application but when I reload the page the params persist. This also seems to happen on the homepage of nuqs. https://nuqs.47ng.com/?count=okok // <--- I would expect this param to be automatically removed as its not valid Is validation only achievable via useEffect or something ? Where i need to manually check params and set manually if not valid ? |
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
-
Hi, I would like to have a custom filter parser where it only accepts allowed values to be present otherwise the param should be removed or cleared out from the invalid value. But I have a problem with handling the invalid value still persisting in in the url despite it being invalid. This probably doesnt clear the value from url because of eq check if im not mistaken. But how I can debug the eq function? It doesnt seem to fire like the serialize or parse where I can check the values.
Anyway here is what I have for now
So I want url to only have ?type=filterA,filterB as param values if anything else it should clear completely the param from url or only the invalid value. How do i do that
Beta Was this translation helpful? Give feedback.
All reactions