You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will change query and the page will show query: newQuery.
As query stays on browser's url, refresh the browser.
Try clicking the button again.
URL changes, but page won't show query removed.
Current vs. Expected behavior
Current: Page won't rerender when the initial query has removed. (It works when it is changed)
Expected: Page render again when the initial query has removed, like when it changed.
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023
Available memory (MB): 4102
Available CPU cores: 2
Binaries:
Node: 20.9.0
npm: 9.8.1
Yarn: 1.22.19
pnpm: 8.10.2
Relevant Packages:
next: 14.2.0-canary.9 // There is a newer canary version (14.3.0-canary.22) available, please upgrade!
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
typescript: 5.1.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Maybe some workaround who doesn't want to downgrade.
constparams=newURLSearchParams(searchParams.toString());params.delete('your-param');// this doesn't work now with bug.params.set('your-param','');// this will still work.constnewRoute=`${pathname}?${params.toString()}`;router.replace(newRoute);
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/admiring-bush-58lfx2
To Reproduce
Current vs. Expected behavior
Current: Page won't rerender when the initial query has removed. (It works when it is changed)
Expected: Page render again when the initial query has removed, like when it changed.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: