2019-11-11 04:24:53 +01:00
|
|
|
function CircularJSONErrorPage() {
|
2019-01-27 16:12:17 +01:00
|
|
|
return <div>This won't render</div>
|
|
|
|
}
|
|
|
|
|
|
|
|
CircularJSONErrorPage.getInitialProps = () => {
|
|
|
|
// This creates a circular JSON object
|
|
|
|
const object = {}
|
2019-05-30 03:19:32 +02:00
|
|
|
object.arr = [object, object]
|
2019-01-27 16:12:17 +01:00
|
|
|
object.arr.push(object.arr)
|
|
|
|
object.obj = object
|
|
|
|
|
|
|
|
return object
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CircularJSONErrorPage
|