Disable react strict mode for react-spectrum

pull/2413/head
Jérémy Rialland 2022-11-24 16:31:10 +01:00 committed by Jérémy Rialland
parent 11ed1432b0
commit 5f983f32c6
1 changed files with 9 additions and 7 deletions

View File

@ -61,13 +61,15 @@ export default function Root({
)
return (
<StrictMode>
<Provider basename={basename}>
<EngineProvider value={engine}>
<Router />
</EngineProvider>
</Provider>
</StrictMode>
// Disable react strict mode cause react-spectrum doesn't support it
// issue https://github.com/adobe/react-spectrum/issues/779
// <StrictMode>
<Provider basename={basename}>
<EngineProvider value={engine}>
<Router />
</EngineProvider>
</Provider>
// </StrictMode>
)
}