Skip to content

Commit 6c9302e

Browse files
Disable strict mode because Vueary doesn't support react 19 strict mode changes
1 parent 4aae1b3 commit 6c9302e

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

app/gui/src/ReactRoot.tsx

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { ApplicationConfigValue } from '@/util/config'
1414
import { QueryClientProvider } from '@tanstack/react-query'
1515
import { QueryClient } from '@tanstack/vue-query'
1616
import { IS_DEV_MODE, isOnElectron, isOnLinux } from 'enso-common/src/detect'
17-
import { StrictMode } from 'react'
1817
import invariant from 'tiny-invariant'
1918

2019
interface ReactRootProps {
@@ -68,32 +67,30 @@ export default function ReactRoot(props: ReactRootProps) {
6867
const isCloudBuild = $config.CLOUD_BUILD === 'true'
6968

7069
return (
71-
<StrictMode>
72-
<QueryClientProvider client={queryClient}>
73-
<UIProviders locale="en-US" portalRoot={portalRoot} appRoot={appRoot}>
74-
<ErrorBoundary>
75-
<Suspense fallback={<LoadingScreen />}>
76-
<OfflineNotificationManager>
77-
<LoggerProvider logger={console}>
78-
<HttpClientProvider httpClient={httpClient}>
79-
<App
80-
supportsDeepLinks={supportsDeepLinks}
81-
supportsLocalBackend={!isCloudBuild}
82-
isAuthenticationDisabled={!shouldUseAuthentication}
83-
projectManagerUrl={projectManagerUrl}
84-
ydocUrl={ydocUrl}
85-
initialProjectName={initialProjectName}
86-
onAuthenticated={onAuthenticated}
87-
/>
88-
</HttpClientProvider>
89-
</LoggerProvider>
90-
</OfflineNotificationManager>
91-
</Suspense>
70+
<QueryClientProvider client={queryClient}>
71+
<UIProviders locale="en-US" portalRoot={portalRoot} appRoot={appRoot}>
72+
<ErrorBoundary>
73+
<Suspense fallback={<LoadingScreen />}>
74+
<OfflineNotificationManager>
75+
<LoggerProvider logger={console}>
76+
<HttpClientProvider httpClient={httpClient}>
77+
<App
78+
supportsDeepLinks={supportsDeepLinks}
79+
supportsLocalBackend={!isCloudBuild}
80+
isAuthenticationDisabled={!shouldUseAuthentication}
81+
projectManagerUrl={projectManagerUrl}
82+
ydocUrl={ydocUrl}
83+
initialProjectName={initialProjectName}
84+
onAuthenticated={onAuthenticated}
85+
/>
86+
</HttpClientProvider>
87+
</LoggerProvider>
88+
</OfflineNotificationManager>
89+
</Suspense>
9290

93-
<ReactQueryDevtools />
94-
</ErrorBoundary>
95-
</UIProviders>
96-
</QueryClientProvider>
97-
</StrictMode>
91+
<ReactQueryDevtools />
92+
</ErrorBoundary>
93+
</UIProviders>
94+
</QueryClientProvider>
9895
)
9996
}

0 commit comments

Comments
 (0)