We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9abc9 commit ec4e690Copy full SHA for ec4e690
packages/next/src/client/app-next-turbopack.ts
@@ -1,6 +1,3 @@
1
-// TODO-APP: hydration warning
2
-
3
-import { renderAppDevOverlay } from 'next/dist/compiled/next-devtools'
4
import { appBootstrap } from './app-bootstrap'
5
import {
6
getComponentStack,
@@ -19,6 +16,10 @@ appBootstrap(() => {
19
16
try {
20
17
hydrate(instrumentationHooks)
21
18
} finally {
22
- renderAppDevOverlay(getComponentStack, getOwnerStack, isRecoverableError)
+ if (process.env.NODE_ENV !== 'production') {
+ const { renderAppDevOverlay } =
+ require('next/dist/compiled/next-devtools') as typeof import('next/dist/compiled/next-devtools')
+ renderAppDevOverlay(getComponentStack, getOwnerStack, isRecoverableError)
23
+ }
24
}
25
})
0 commit comments