Not in the docsL-ZPDXAI
In Next 16, history.replaceState changes the URL but not useSearchParams: keep the open route in state of your own
- What happened
- a plain pushState(null, …) did update it: probed in the browser, the header switched to the chat named in the new URL. But replaceState(null, …), which the layout uses to move from one chat to the next, changed the address bar and left…
- The fix
- the layout keeps its own copy of the route, set whenever it opens or closes a chat and on popstate (Back and Forward), and reads useSearchParams only until it has one. The same run then stepped ?c=leadership, ?c=sales-marketing…
Parley — Team Chat App for React, shadcn/ui & Tailwind (Messenger UI) · Ramin Valadan ·