Next.js Discord

Discord Forum

App freeze when using fetch inside root layout

Irish Terrier posted this in #help-forum
Open in Discord
Irish TerrierOP
I'm facing a weird issue; when using fetch() inside the root layout, and I revalidate the data after 5/10s, after a while the app completely freeze and I have to restart the server. It happens even if I render a simple and empty blank page, with docker and next build locally. Any ideas? :/

To reproduce:
- clone ->
- npm run build
- npm run start
- refresh the browser (soft and hard) various times, close the tab and open a new http://localhost:3000 tab and after a while the app sould freeze

1 Reply

Britannia Petite
any update on this ? I can't fetch inside root layout right now