Skip to content

Commit

Permalink
Export React.act from 18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii authored and acdlite committed Apr 26, 2024
1 parent d6c42f7 commit f1338f8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ describe('isomorphic act()', () => {
ReactNoop = require('react-noop-renderer');
DiscreteEventPriority = require('react-reconciler/constants')
.DiscreteEventPriority;
act = React.unstable_act;
act = gate(flags => flags.variant) ? React.act : React.unstable_act;
});

beforeEach(() => {
Expand Down
1 change: 1 addition & 0 deletions packages/react/index.classic.fb.js
Expand Up @@ -9,6 +9,7 @@

export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
Expand Down
1 change: 1 addition & 0 deletions packages/react/index.experimental.js
Expand Up @@ -9,6 +9,7 @@

export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
Expand Down
1 change: 1 addition & 0 deletions packages/react/index.js
Expand Up @@ -33,6 +33,7 @@ export type ChildrenArray<+T> = $ReadOnlyArray<ChildrenArray<T>> | T;
// We can't use export * from in Flow for some reason.
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
Expand Down
1 change: 1 addition & 0 deletions packages/react/index.modern.fb.js
Expand Up @@ -9,6 +9,7 @@

export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
Expand Down
1 change: 1 addition & 0 deletions packages/react/index.stable.js
Expand Up @@ -9,6 +9,7 @@

export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
Expand Down

0 comments on commit f1338f8

Please sign in to comment.