Skip to content

Commit 8bf3767

Browse files
arunodarauchg
authored andcommitted
Remove patch-react.js (vercel#1420)
This is a pretty complex code base and it cause issues for some React components. And React/fiber is coming with a proper solution.
1 parent 7d0374b commit 8bf3767

File tree

2 files changed

+0
-144
lines changed

2 files changed

+0
-144
lines changed

client/next-dev.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1-
import patch from './patch-react'
21
import evalScript from '../lib/eval-script'
32

43
const { __NEXT_DATA__: { errorComponent } } = window
54
const ErrorComponent = evalScript(errorComponent).default
65

7-
// apply patch first
8-
patch((err) => {
9-
console.error(err)
10-
11-
Promise.resolve().then(() => {
12-
onError(err)
13-
})
14-
})
15-
166
require('react-hot-loader/patch')
177

188
const next = window.next = require('./')

client/patch-react.js

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy