mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Warn users and revert their `devtool` when they manually change the `devtool` in development mode. For this addition, I check to ensure the `devtool` is custom (i.e. different than what is set by Next) and has a value (`false` is fine as a custom `devtool`!). As described in [this issue (13963)](https://github.com/vercel/next.js/issues/13963), changing the `devtool` in development mode can cause issues with performance. Fixes #13963
9 lines
178 B
JavaScript
9 lines
178 B
JavaScript
import { useEffect } from 'react'
|
|
|
|
export default function Index(props) {
|
|
useEffect(() => {
|
|
throw new Error('this should render')
|
|
}, [])
|
|
return <div>Index Page</div>
|
|
}
|