Skip to content

Commit

Permalink
refactor: remove hydration link appending console interception (#67011)
Browse files Browse the repository at this point in the history
### What

Remove the duplicated `setup-hydration-warning` 

### Why

we already handling the warning message appending in error dialog, no
need to intercept it again.
  • Loading branch information
huozhi authored Jun 19, 2024
1 parent 9889322 commit b548fc7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion packages/next/src/client/next-dev-turbopack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { initialize, version, router, emitter } from './'
import initHMR from './dev/hot-middleware-client'

import './setup-hydration-warning'
import { pageBootrap } from './page-bootstrap'
//@ts-expect-error requires "moduleResolution": "node16" in tsconfig.json and not .ts extension
import { connect } from '@vercel/turbopack-ecmascript-runtime/dev/client/hmr-client.ts'
Expand Down
2 changes: 0 additions & 2 deletions packages/next/src/client/next-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { initialize, version, router, emitter } from './'
import initHMR from './dev/hot-middleware-client'
import { pageBootrap } from './page-bootstrap'

import './setup-hydration-warning'

window.next = {
version,
// router is initialized later so it has to be live-binded
Expand Down
26 changes: 0 additions & 26 deletions packages/next/src/client/setup-hydration-warning.ts

This file was deleted.

0 comments on commit b548fc7

Please sign in to comment.