Skip to content

Commit

Permalink
fix(suite): revert strict mode, it causes some troubles in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-sanderson authored and tomasklim committed Apr 29, 2024
1 parent a6d9fad commit cd92ed2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
58 changes: 29 additions & 29 deletions packages/suite-desktop-ui/src/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Provider as ReduxProvider } from 'react-redux';
import { Router as RouterProvider } from 'react-router-dom';
import { HelmetProvider } from 'react-helmet-async';
import { StrictMode } from 'react';

import { createRoot } from 'react-dom/client';
import { init as initSentry } from '@sentry/electron/renderer';
Expand Down Expand Up @@ -43,34 +42,35 @@ const Main = () => {
const formattersConfig = useFormattersConfig();

return (
<StrictMode>
<HelmetProvider>
<ConnectedThemeProvider>
<RouterProvider history={history}>
<ModalContextProvider>
<ErrorBoundary>
<Autodetect />
<Resize />
<Protocol />
<OnlineStatus />
<RouterHandler />
<ConnectedIntlProvider>
<FormatterProvider config={formattersConfig}>
<DesktopUpdater>
<Metadata />
<ToastContainer />
<Preloader>
<AppRouter />
</Preloader>
</DesktopUpdater>
</FormatterProvider>
</ConnectedIntlProvider>
</ErrorBoundary>
</ModalContextProvider>
</RouterProvider>
</ConnectedThemeProvider>
</HelmetProvider>
</StrictMode>
// Todo: Enable when issues are fixed (ReactTruncate & BumpFee)
// <StrictMode>
<HelmetProvider>
<ConnectedThemeProvider>
<RouterProvider history={history}>
<ModalContextProvider>
<ErrorBoundary>
<Autodetect />
<Resize />
<Protocol />
<OnlineStatus />
<RouterHandler />
<ConnectedIntlProvider>
<FormatterProvider config={formattersConfig}>
<DesktopUpdater>
<Metadata />
<ToastContainer />
<Preloader>
<AppRouter />
</Preloader>
</DesktopUpdater>
</FormatterProvider>
</ConnectedIntlProvider>
</ErrorBoundary>
</ModalContextProvider>
</RouterProvider>
</ConnectedThemeProvider>
</HelmetProvider>
// </StrictMode>
);
};

Expand Down
54 changes: 27 additions & 27 deletions packages/suite-web/src/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import AppRouter from './support/Router';
import { useCypress } from './support/useCypress';
import { FormatterProvider } from '@suite-common/formatters';
import { HelmetProvider } from 'react-helmet-async';
import { StrictMode } from 'react';

const Main = () => {
useCypress();
Expand All @@ -35,32 +34,33 @@ const Main = () => {
const formattersConfig = useFormattersConfig();

return (
<StrictMode>
<HelmetProvider>
<ConnectedThemeProvider>
<RouterProvider history={history}>
<ModalContextProvider>
<ErrorBoundary>
<Autodetect />
<Resize />
<Protocol />
<OnlineStatus />
<RouterHandler />
<ConnectedIntlProvider>
<FormatterProvider config={formattersConfig}>
<Metadata />
<ToastContainer />
<Preloader>
<AppRouter />
</Preloader>
</FormatterProvider>
</ConnectedIntlProvider>
</ErrorBoundary>
</ModalContextProvider>
</RouterProvider>
</ConnectedThemeProvider>
</HelmetProvider>
</StrictMode>
// Todo: Enable when issues are fixed (ReactTruncate & BumpFee)
// <StrictMode>
<HelmetProvider>
<ConnectedThemeProvider>
<RouterProvider history={history}>
<ModalContextProvider>
<ErrorBoundary>
<Autodetect />
<Resize />
<Protocol />
<OnlineStatus />
<RouterHandler />
<ConnectedIntlProvider>
<FormatterProvider config={formattersConfig}>
<Metadata />
<ToastContainer />
<Preloader>
<AppRouter />
</Preloader>
</FormatterProvider>
</ConnectedIntlProvider>
</ErrorBoundary>
</ModalContextProvider>
</RouterProvider>
</ConnectedThemeProvider>
</HelmetProvider>
// </StrictMode>
);
};

Expand Down

0 comments on commit cd92ed2

Please sign in to comment.