router.replace() triggers a full server navigation cycle in Next.js 15+, which can stall after a page refresh (no client route cache), preventing useSearchParams from updating and making inbox items unclickable. window.history.replaceState() updates the URL synchronously without triggering server navigation, which is the recommended approach for URL state management in Next.js 14.1+. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| (auth)/login | ||
| (dashboard) | ||
| favicon.ico | ||
| pair/local | ||
| custom.css | ||
| globals.css | ||
| layout.tsx | ||
| page.tsx | ||