Yuki Takei 4 ani în urmă
părinte
comite
e48de63a26
1 a modificat fișierele cu 3 adăugiri și 12 ștergeri
  1. 3 12
      packages/app/src/client/app.jsx

+ 3 - 12
packages/app/src/client/app.jsx

@@ -118,8 +118,6 @@ Object.assign(componentMappings, {
   'duplicated-alert': <DuplicatedAlert />,
   'duplicated-alert': <DuplicatedAlert />,
   'redirected-alert': <RedirectedAlert />,
   'redirected-alert': <RedirectedAlert />,
   'renamed-alert': <RenamedAlert />,
   'renamed-alert': <RenamedAlert />,
-
-  'growi-context-extractor': <ContextExtractor />, // use static swr
 });
 });
 
 
 // additional definitions if data exists
 // additional definitions if data exists
@@ -179,19 +177,12 @@ const renderMainComponents = () => {
 // extract context before rendering main components
 // extract context before rendering main components
 const elem = document.getElementById('growi-context-extractor');
 const elem = document.getElementById('growi-context-extractor');
 ReactDOM.render(
 ReactDOM.render(
-  <I18nextProvider i18n={i18n}>
-    <ErrorBoundary>
-      <SWRConfig value={swrGlobalConfiguration}>
-        <Provider inject={injectableContainers}>
-          {componentMappings['growi-context-extractor']}
-        </Provider>
-      </SWRConfig>
-    </ErrorBoundary>
-  </I18nextProvider>,
+  <SWRConfig value={swrGlobalConfiguration}>
+    <ContextExtractor />
+  </SWRConfig>,
   elem,
   elem,
   renderMainComponents,
   renderMainComponents,
 );
 );
 
 
-
 // initialize scrollpos-styler
 // initialize scrollpos-styler
 ScrollPosStyler.init();
 ScrollPosStyler.init();