NextJS 14.1 now supports window.history.replaceState #466
-
Just wondering if there's any plans to update Release info is here: https://nextjs.org/blog/next-14-1#windowhistorypushstate-and-windowhistoryreplacestate |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, The only difference now is that the app router is aware of shallow URL changes, and won't reset them accidentally (as it was the case in It's been a wild ride, and a couple of Next.js versions had issues while they were implementing proper support for the History API, but I'm glad it's all converged now. I wrote about all of this on my blog. |
Beta Was this translation helpful? Give feedback.
Ah,
nuqs
has been using the Window History API since v1.8.0, much before Next.js did actually support it. That was the only way to do shallow updates (and it still is), which is the default.The only difference now is that the app router is aware of shallow URL changes, and won't reset them accidentally (as it was the case in
[email protected]
with the prefetch bug, see #388).It's been a wild ride, and a couple of Next.js versions had issues while they were implementing proper support for the History API, but I'm glad it's all converged now. I wrote about all of this on my blog.