Skip to content

Commit b520e32

Browse files
committed
Disable React's default Transition indicator
1 parent cc6d6df commit b520e32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +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 = {
216+
// @ts-expect-error: Should pass on `@types/react` bump.
217+
onDefaultTransitionIndicator: onDefaultTransitionIndicator,
210218
onRecoverableError,
211219
onCaughtError,
212220
onUncaughtError,

0 commit comments

Comments
 (0)