rsnext/packages/next/client/dev
Balázs Orbán 9639fe704c
Ensure we don't poll page in development when notFound: true is returned (#34352)
Fixes: #34342

Visiting the following page will call gSSP indefinitely in a loop and logs errors from `on-demand-entries-client`:
```js
const Home = () => null
export default Home
        
export function getServerSideProps() {
  console.log("gssp called")
  return { notFound: true }
}
```

We should not keep fetching the page if it returns 404 as  it can introduce unnecessary data requests.

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`



Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-02-16 18:53:48 +00:00
..
error-overlay Allow dismissing full refresh warning for session (#33868) 2022-02-14 23:23:45 +00:00
amp-dev.js Fix dev router usage before router initializing (#31632) 2021-11-21 15:42:19 +01:00
dev-build-watcher.js Add config support for build activity indicator position (#30109) 2021-11-03 21:17:36 +00:00
fouc.ts Encapsulate routing and initial hydration (#33875) 2022-02-02 09:08:16 -06:00
on-demand-entries-client.js Ensure we don't poll page in development when notFound: true is returned (#34352) 2022-02-16 18:53:48 +00:00
webpack-hot-middleware-client.js Clean up eventsource initialization (#24015) 2021-04-13 16:32:36 +00:00