mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
[flags] Cleanup enableActivity (#36603)
This commit is contained in:
committed by
GitHub
parent
9a6a31db6b
commit
3f6785f59e
@@ -1527,7 +1527,6 @@ describe('Activity', () => {
|
||||
expect(root).toMatchRenderedOutput(<span prop={2} />);
|
||||
});
|
||||
|
||||
// @gate enableActivity
|
||||
it('getSnapshotBeforeUpdate does not run in hidden trees', async () => {
|
||||
let setState;
|
||||
|
||||
@@ -1607,7 +1606,6 @@ describe('Activity', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
// @gate enableActivity
|
||||
it('warns if you pass a hidden prop', async () => {
|
||||
function App() {
|
||||
return (
|
||||
|
||||
@@ -1266,7 +1266,6 @@ describe('useEffectEvent', () => {
|
||||
assertLog(['ContextReader (Effect event): second']);
|
||||
});
|
||||
|
||||
// @gate enableActivity
|
||||
it('effect events are fresh inside Activity', async () => {
|
||||
function Child({value}) {
|
||||
const getValue = useEffectEvent(() => {
|
||||
|
||||
@@ -81,8 +81,6 @@ function getTestFlags() {
|
||||
fb: www || xplat,
|
||||
|
||||
// These aren't flags, just a useful aliases for tests.
|
||||
// TODO: Clean this up.
|
||||
enableActivity: true,
|
||||
enableSuspenseList: releaseChannel === 'experimental' || www || xplat,
|
||||
enableLegacyHidden: www,
|
||||
// TODO: Suspending the work loop during the render phase is currently
|
||||
|
||||
Reference in New Issue
Block a user