mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
8570d19af6
* handle errors of lifecycle methods * handle errors of render method
12 lines
204 B
JavaScript
12 lines
204 B
JavaScript
import 'react-hot-loader/patch'
|
|
import patch from './patch-react'
|
|
|
|
// apply patch first
|
|
patch((err) => {
|
|
console.error(err)
|
|
next.renderError(err)
|
|
})
|
|
|
|
const next = require('./next')
|
|
window.next = next
|