|
@@ -1,7 +1,7 @@
|
|
|
import {render} from 'react-dom';
|
|
|
import {createRoot} from 'react-dom/client';
|
|
|
|
|
|
-import {ROOT_ELEMENT} from 'sentry/constants';
|
|
|
+import {ROOT_ELEMENT, USE_REACT_CONCURRENT_MODE} from 'sentry/constants';
|
|
|
import type {PipelineInitialData} from 'sentry/types';
|
|
|
import PipelineView from 'sentry/views/integrationPipeline/pipelineView';
|
|
|
|
|
@@ -12,7 +12,8 @@ function renderDom(pipelineName: string, props: PipelineInitialData['props']) {
|
|
|
if (
|
|
|
(window.__initialData.features as unknown as string[]).includes(
|
|
|
'organizations:react-concurrent-renderer-enabled'
|
|
|
- )
|
|
|
+ ) ||
|
|
|
+ USE_REACT_CONCURRENT_MODE
|
|
|
) {
|
|
|
// Enable concurrent rendering
|
|
|
const root = createRoot(rootEl);
|