Next.js Discord

Discord Forum

Extra value in URL params

Answered
Orinoco Crocodile posted this in #help-forum
Open in Discord
Orinoco CrocodileOP
Hello everyone, In here i am just trying to get the search input from the user and push that to the url, I was able to push the search input to the url, but i am confused what is this extra another search=function... like this which is pushed to the url along with my search input for eg hello is what is here i am searching but another &search= function.... came automatically. http://localhost:3000/?search=hello&search=function%28%29%7Bif%28p%7C%7Cy%29%7Bvar%20e%3DDate.now%28%29%2Cd%3Dt%28e%29%3Bif%28l.current%3D%5B%5D.slice.call%28arguments%29%2Cv.current%3Di%2Ca.current%3De%2Cd%29%7Bif%28%21f.current%26%26g.current%29return%20o.current%3Da.current%2Cn%28c%2Cu%29%2Cs%3Fr%28a.current%29%3Am.current%3Bif%28h%29return%20n%28c%2Cu%29%2Cr%28a.current%29%7Dreturn%20f.current%7C%7Cn%28c%2Cu%29%2Cm.current%7D%7D is this something next js default behaviour or am i doing something wrong ?

This is my code for the search-input component:
Answered by joulev
const [debouncedValue] not const debouncedValue
View full answer

3 Replies