From bb12ae259c17529b93641ddb3fb70ff8539d92a6 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Fri, 20 Dec 2024 15:45:31 +0100 Subject: [PATCH] refactor: rename the react client error callbacks module --- packages/next/src/client/app-index.tsx | 4 ++-- packages/next/src/client/index.tsx | 2 +- .../{app-router.ts => error-boundary-callbacks.ts} | 0 .../{shared.ts => on-recoverable-error.ts} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename packages/next/src/client/react-client-callbacks/{app-router.ts => error-boundary-callbacks.ts} (100%) rename packages/next/src/client/react-client-callbacks/{shared.ts => on-recoverable-error.ts} (100%) 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