Yuki Takei 4 yıl önce
ebeveyn
işleme
e48de63a26
1 değiştirilmiş dosya ile 3 ekleme ve 12 silme
  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 />,
   'redirected-alert': <RedirectedAlert />,
   'renamed-alert': <RenamedAlert />,
-
-  'growi-context-extractor': <ContextExtractor />, // use static swr
 });
 
 // additional definitions if data exists
@@ -179,19 +177,12 @@ const renderMainComponents = () => {
 // extract context before rendering main components
 const elem = document.getElementById('growi-context-extractor');
 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,
   renderMainComponents,
 );
 
-
 // initialize scrollpos-styler
 ScrollPosStyler.init();