mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(app): wrap react with StrictMode [EE-2023] (#6075)
This commit is contained in:
parent
bcaf20caca
commit
5bd157f8fc
2 changed files with 14 additions and 3 deletions
10
app/react-tools/RootProvider.tsx
Normal file
10
app/react-tools/RootProvider.tsx
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { UIRouterContextComponent } from '@uirouter/react-hybrid';
|
||||
import { PropsWithChildren, StrictMode } from 'react';
|
||||
|
||||
export function RootProvider({ children }: PropsWithChildren<unknown>) {
|
||||
return (
|
||||
<StrictMode>
|
||||
<UIRouterContextComponent>{children}</UIRouterContextComponent>
|
||||
</StrictMode>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue