diff --git a/packages/next/src/client/app-index.tsx b/packages/next/src/client/app-index.tsx index 58d3dd91a359e..1bf4acf3a4d78 100644 --- a/packages/next/src/client/app-index.tsx +++ b/packages/next/src/client/app-index.tsx @@ -9,11 +9,11 @@ import React, { use } from 'react' // eslint-disable-next-line import/no-extraneous-dependencies import { createFromReadableStream } from 'react-server-dom-webpack/client' import { HeadManagerContext } from '../shared/lib/head-manager-context.shared-runtime' -import { onRecoverableError } from './react-client-callbacks/shared' +import { onRecoverableError } from './react-client-callbacks/on-recoverable-error' import { onCaughtError, onUncaughtError, -} from './react-client-callbacks/app-router' +} from './react-client-callbacks/error-boundary-callbacks' import { callServer } from './app-call-server' import { findSourceMapURL } from './app-find-source-map-url' import { diff --git a/packages/next/src/client/index.tsx b/packages/next/src/client/index.tsx index 42ebd0da9bb09..052ecd65a7b46 100644 --- a/packages/next/src/client/index.tsx +++ b/packages/next/src/client/index.tsx @@ -45,7 +45,7 @@ import { SearchParamsContext, PathParamsContext, } from '../shared/lib/hooks-client-context.shared-runtime' -import { onRecoverableError } from './react-client-callbacks/shared' +import { onRecoverableError } from './react-client-callbacks/on-recoverable-error' import tracer from './tracing/tracer' import reportToSocket from './tracing/report-to-socket' import { isNextRouterError } from './components/is-next-router-error' diff --git a/packages/next/src/client/react-client-callbacks/app-router.ts b/packages/next/src/client/react-client-callbacks/error-boundary-callbacks.ts similarity index 100% rename from packages/next/src/client/react-client-callbacks/app-router.ts rename to packages/next/src/client/react-client-callbacks/error-boundary-callbacks.ts diff --git a/packages/next/src/client/react-client-callbacks/shared.ts b/packages/next/src/client/react-client-callbacks/on-recoverable-error.ts similarity index 100% rename from packages/next/src/client/react-client-callbacks/shared.ts rename to packages/next/src/client/react-client-callbacks/on-recoverable-error.ts