mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
expose act() sigil correctly for umd builds (#16110)
after https://github.com/facebook/react/pull/16039, act was broken for umd builds. This PR fixes it.
This commit is contained in:
@@ -11,12 +11,12 @@ import * as SchedulerTracing from 'scheduler/tracing';
|
||||
import ReactCurrentDispatcher from '../ReactCurrentDispatcher';
|
||||
import ReactCurrentOwner from '../ReactCurrentOwner';
|
||||
import ReactDebugCurrentFrame from '../ReactDebugCurrentFrame';
|
||||
import IsSomeRendererActing from '../IsSomeRendererActing';
|
||||
|
||||
const ReactSharedInternals = {
|
||||
ReactCurrentDispatcher,
|
||||
ReactCurrentOwner,
|
||||
// used by act()
|
||||
ReactShouldWarnActingUpdates: {current: false},
|
||||
IsSomeRendererActing,
|
||||
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
||||
assign,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user