File tree 2 files changed +8
-2
lines changed
packages/react-reconciler/src 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ import {
95
95
findHostInstancesForRefresh ,
96
96
} from './ReactFiberHotReloading.new' ;
97
97
import { markRenderScheduled } from './SchedulingProfiler' ;
98
-
98
+ import ReactVersion from 'shared/ReactVersion' ;
99
99
export { registerMutableSourceForHydration } from './ReactMutableSource.new' ;
100
100
export { createPortal } from './ReactPortal' ;
101
101
export {
@@ -739,5 +739,8 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean {
739
739
setRefreshHandler : __DEV__ ? setRefreshHandler : null ,
740
740
// Enables DevTools to append owner stacks to error messages in DEV mode.
741
741
getCurrentFiber : __DEV__ ? getCurrentFiberForDevTools : null ,
742
+ // Enables DevTools to detect reconciler version rather than renderer version
743
+ // which may not match for third party renderers.
744
+ reconcilerVersion : ReactVersion ,
742
745
} ) ;
743
746
}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ import {
95
95
findHostInstancesForRefresh ,
96
96
} from './ReactFiberHotReloading.old' ;
97
97
import { markRenderScheduled } from './SchedulingProfiler' ;
98
-
98
+ import ReactVersion from 'shared/ReactVersion' ;
99
99
export { registerMutableSourceForHydration } from './ReactMutableSource.old' ;
100
100
export { createPortal } from './ReactPortal' ;
101
101
export {
@@ -739,5 +739,8 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean {
739
739
setRefreshHandler : __DEV__ ? setRefreshHandler : null ,
740
740
// Enables DevTools to append owner stacks to error messages in DEV mode.
741
741
getCurrentFiber : __DEV__ ? getCurrentFiberForDevTools : null ,
742
+ // Enables DevTools to detect reconciler version rather than renderer version
743
+ // which may not match for third party renderers.
744
+ reconcilerVersion : ReactVersion ,
742
745
} ) ;
743
746
}
You can’t perform that action at this time.
0 commit comments