Skip to content

Commit 8ee9c71

Browse files
committed
Disable default Transition indicator
1 parent 53cb0b5 commit 8ee9c71

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
@@ -207,10 +207,15 @@ function Root({ children }: React.PropsWithChildren<{}>) {
207207
return children
208208
}
209209

210+
function onDefaultTransitionIndicator() {
211+
// TODO: Compose default with user-configureable (e.g. nprogress)
212+
// 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
213+
return () => {}
214+
}
215+
210216
const reactRootOptions: ReactDOMClient.RootOptions = {
211-
// // TODO: Compose default with user-configureable (e.g. nprogress)
212217
// @ts-expect-error: Should pass on `@types/react` bump.
213-
onDefaultTransitionIndicator: undefined,
218+
onDefaultTransitionIndicator: onDefaultTransitionIndicator,
214219
onRecoverableError,
215220
onCaughtError,
216221
onUncaughtError,

0 commit comments

Comments
 (0)