Export React.act from 18.3

This commit is contained in:
Rick Hanlon
2024-04-26 12:17:57 -04:00
committed by Andrew Clark
parent d6c42f7b11
commit f1338f8080
6 changed files with 6 additions and 1 deletions
@@ -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(() => {
+1
View File
@@ -9,6 +9,7 @@
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
+1
View File
@@ -9,6 +9,7 @@
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
+1
View File
@@ -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,
+1
View File
@@ -9,6 +9,7 @@
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,
+1
View File
@@ -9,6 +9,7 @@
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act,
act as unstable_act,
Children,
Component,