App freeze when using fetch inside root layout
Unanswered
Irish Terrier posted this in #help-forum
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 -> https://github.com/Emiliano-Bucci/next-fetch-revalidate-issue
- 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
To reproduce:
- clone -> https://github.com/Emiliano-Bucci/next-fetch-revalidate-issue
- 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