Reproduction for this GitHub issue. The issue explains why the reproduction exists.
The bugs that this reproduction shows off do not happen on the development server. Instead, you need to build for production then preview the build. I believe this is because of the bfcache, which is disabled in development because hot module reloading on the dev server uses a web socket. This is mentioned in the GitHub issue.
npm run build
npm run preview