Skip to content

Commit

Permalink
expose act() sigil correctly for umd builds
Browse files Browse the repository at this point in the history
after facebook#16039, act was broken for umd builds. This PR fixes it.
  • Loading branch information
threepointone committed Jul 11, 2019
1 parent b766904 commit 55a2d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/forks/ReactSharedInternals.umd.js
Expand Up @@ -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,
};
Expand Down

0 comments on commit 55a2d63

Please sign in to comment.