Skip to content

Commit 80533b7

Browse files
committed
Enable React's default transition indicator
1 parent 6442e03 commit 80533b7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/next/src/client/app-index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ import { isBot } from '../shared/lib/router/utils/is-bot'
2929

3030
/// <reference types="react-dom/experimental" />
3131

32-
function onDefaultTransitionIndicator() {
33-
// TODO: Compose default with user-configureable (e.g. nprogress)
34-
// TODO: Use React's default even if user config isn't set up. Requires resolution of https://issues.chromium.org/u/1/issues/419746417
35-
}
36-
3732
const appElement: HTMLElement | Document = document
3833

3934
const encoder = new TextEncoder()
@@ -213,8 +208,9 @@ function Root({ children }: React.PropsWithChildren<{}>) {
213208
}
214209

215210
const reactRootOptions: ReactDOMClient.RootOptions = {
211+
// // TODO: Compose default with user-configureable (e.g. nprogress)
216212
// @ts-expect-error: Should pass on `@types/react` bump.
217-
onDefaultTransitionIndicator,
213+
onDefaultTransitionIndicator: undefined,
218214
onRecoverableError,
219215
onCaughtError,
220216
onUncaughtError,

0 commit comments

Comments
 (0)