Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b49a45d

Browse files
committed
Handle potentially undefined routeInfo in handleStaticIndicator (creates noise in tests)
1 parent 9499713 commit b49a45d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/client/components/react-dev-overlay/pages/hot-reloader-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function handleStaticIndicator() {
260260
const pageComponent = routeInfo?.Component
261261
const appComponent = window.next.router.components['/_app']?.Component
262262
const isDynamicPage =
263-
Boolean(pageComponent?.getInitialProps) || Boolean(routeInfo.__N_SSP)
263+
Boolean(pageComponent?.getInitialProps) || Boolean(routeInfo?.__N_SSP)
264264
const hasAppGetInitialProps =
265265
Boolean(appComponent?.getInitialProps) &&
266266
appComponent?.getInitialProps !== appComponent?.origGetInitialProps

0 commit comments

Comments
 (0)