Skip to content

Commit 1adbb35

Browse files
committed
Disable default Transition indicator
1 parent a0f9bb2 commit 1adbb35

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,15 @@ function Root({ children }: React.PropsWithChildren<{}>) {
206206
return children
207207
}
208208

209+
function onDefaultTransitionIndicator() {
210+
// TODO: Compose default with user-configureable (e.g. nprogress)
211+
// TODO: Use React's default once we figure out hanging indicators: https://codesandbox.io/p/sandbox/charming-moon-hktkp6?file=%2Fsrc%2Findex.js%3A106%2C30
212+
return () => {}
213+
}
214+
209215
const reactRootOptions: ReactDOMClient.RootOptions = {
210-
// // TODO: Compose default with user-configureable (e.g. nprogress)
211216
// @ts-expect-error: Should pass on `@types/react` bump.
212-
onDefaultTransitionIndicator: undefined,
217+
onDefaultTransitionIndicator: onDefaultTransitionIndicator,
213218
onRecoverableError,
214219
onCaughtError,
215220
onUncaughtError,

0 commit comments

Comments
 (0)