parent
bb149c8170
commit
d79c6ab995
|
@ -330,7 +330,7 @@ var DOMRenderer = ReactFiberReconciler({
|
||||||
|
|
||||||
scheduleDeferredCallback: ReactDOMFrameScheduling.rIC,
|
scheduleDeferredCallback: ReactDOMFrameScheduling.rIC,
|
||||||
|
|
||||||
useSyncScheduling: true,
|
useSyncScheduling: !ReactDOMFeatureFlags.fiberAsyncScheduling,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var ReactDOMFeatureFlags = {
|
var ReactDOMFeatureFlags = {
|
||||||
|
fiberAsyncScheduling: false,
|
||||||
useCreateElement: true,
|
useCreateElement: true,
|
||||||
useFiber: false,
|
useFiber: false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -126,9 +126,12 @@ var EventPluginHub = {
|
||||||
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
|
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
|
||||||
// live here; needs to be moved to a better place soon
|
// live here; needs to be moved to a better place soon
|
||||||
if (typeof inst.tag === 'number') {
|
if (typeof inst.tag === 'number') {
|
||||||
const props = EventPluginUtils.getFiberCurrentPropsFromNode(
|
const stateNode = inst.stateNode;
|
||||||
inst.stateNode
|
if (!stateNode) {
|
||||||
);
|
// Work in progress (ex: onload events in incremental mode).
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
const props = EventPluginUtils.getFiberCurrentPropsFromNode(stateNode);
|
||||||
if (!props) {
|
if (!props) {
|
||||||
// Work in progress.
|
// Work in progress.
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue