App performing full page reload after api fetch
Unanswered
American Shorthair posted this in #help-forum
American ShorthairOP
My next app (v14.2.3, pages) is performing a page refresh on the first instance of a fetch to an api route. This started happening after upgrading from 14.0.4 to 14.2.2 (more specifically from 14.1.0 to 14.2.0). I have isolated the server code to this line: https://github.com/vercel/next.js/blob/a0df9860c4f94508f60514d71f4513922ffd025d/packages/next/src/server/dev/hot-reloader-webpack.ts#L1319
Based on my reading, it is determining the _document.js content is changing, however I have made no changes to the code when this happens
Based on my reading, it is determining the _document.js content is changing, however I have made no changes to the code when this happens
6 Replies
American ShorthairOP
I'm using the webpack server, not turbo
American ShorthairOP
Looks like it was added in https://github.com/vercel/next.js/releases/tag/v14.2.0-canary.43
Canary 42 does not repro
American ShorthairOP
Appears to be this pr: https://github.com/vercel/next.js/pull/63537
@LaPerm
American ShorthairOP