|
|
@@ -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();
|