mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Export React.act from 18.3
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
export {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
act,
|
||||
act as unstable_act,
|
||||
Children,
|
||||
Component,
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
export {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
act,
|
||||
act as unstable_act,
|
||||
Children,
|
||||
Component,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
export {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
act,
|
||||
act as unstable_act,
|
||||
Children,
|
||||
Component,
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
export {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
act,
|
||||
act as unstable_act,
|
||||
Children,
|
||||
Component,
|
||||
|
||||
Reference in New Issue
Block a user