c98d2b927d
### What? In dev mode, routing to a 404 page will result in an infinite redirect cycle. This PR is an attempt to bring back similar functionality currently implemented in the [pages router.](https://github.com/vercel/next.js/blob/canary/packages/next/src/client/dev/on-demand-entries-client.ts#L41-L59) ### Why? When the `pong` event (emitted from `onHMR`) occurs on a page that doesn't exist, it will result in frequent calls to `router.fastRefresh()`. Because the server response is an error, it'll trigger a mpa navigation [here]( |
||
---|---|---|
.. | ||
.stats-app | ||
__mocks__ | ||
development | ||
e2e | ||
examples | ||
integration | ||
lib | ||
production | ||
unit | ||
.gitignore | ||
jest-setup-after-env.ts | ||
jest.d.ts | ||
readme.md | ||
test-file.txt |