Skip to content

Commit

Permalink
[web] Remove strict mode
Browse files Browse the repository at this point in the history
- Components are mounted twice, which poduces some side effects as
  calling to probe system twice.
  • Loading branch information
joseivanlopez committed Mar 23, 2023
1 parent 7384804 commit 070df98
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* find current contact information at www.suse.com.
*/

import React, { StrictMode } from "react";
import React from "react";
import { createRoot } from "react-dom/client";
import "core-js/stable";
import "regenerator-runtime/runtime";
Expand Down Expand Up @@ -52,28 +52,26 @@ const container = document.getElementById("root");
const root = createRoot(container);

root.render(
<StrictMode>
<LoginWrapper>
<InstallerClientProvider client={createClient}>
<SoftwareProvider>
<HashRouter>
<Routes>
<Route path="/" element={<App />}>
<Route path="/" element={<Main />}>
<Route index element={<Overview />} />
<Route path="/overview" element={<Overview />} />
<Route path="/l10n" element={<L10nPage />} />
<Route path="/storage" element={<StoragePage />} />
<Route path="/storage/iscsi" element={<ISCSIPage />} />
<Route path="/network" element={<NetworkPage />} />
<Route path="/users" element={<UsersPage />} />
</Route>
<Route path="products" element={<ProductSelectionPage />} />
<LoginWrapper>
<InstallerClientProvider client={createClient}>
<SoftwareProvider>
<HashRouter>
<Routes>
<Route path="/" element={<App />}>
<Route path="/" element={<Main />}>
<Route index element={<Overview />} />
<Route path="/overview" element={<Overview />} />
<Route path="/l10n" element={<L10nPage />} />
<Route path="/storage" element={<StoragePage />} />
<Route path="/storage/iscsi" element={<ISCSIPage />} />
<Route path="/network" element={<NetworkPage />} />
<Route path="/users" element={<UsersPage />} />
</Route>
</Routes>
</HashRouter>
</SoftwareProvider>
</InstallerClientProvider>
</LoginWrapper>
</StrictMode>
<Route path="products" element={<ProductSelectionPage />} />
</Route>
</Routes>
</HashRouter>
</SoftwareProvider>
</InstallerClientProvider>
</LoginWrapper>
);

0 comments on commit 070df98

Please sign in to comment.