GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Test infra: Support gate('enableFeatureFlag') by acdlite · Pull Request #30760 · react/react

Conversation

@acdlite

@acdlite acdlite commented Aug 20, 2024

Copy link
Copy Markdown
Collaborator

Shortcut for the common case where only a single flag is checked. Same as gate(flags => flags.enableFeatureFlag).

Normally I don't care about these types of conveniences but I'm about to add a lot more inline flag checks these all over our tests and it gets noisy. This helps a bit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@acdlite
Test infra: Support gate('enableFeatureFlag')
6f051ab
Shortcut for the common case where only a single flag is checked. Same
as `gate(flags => flags.enableFeatureFlag)`.

Normally I don't care about these types of conveniences but I'm about to
add a lot more inline flag checks these all over our tests and it gets
noisy. This helps a bit.
@vercel

vercel Bot commented Aug 20, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2024 8:26pm
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Aug 20, 2024
@vercel
vercel Bot deployed to Preview August 20, 2024 20:26
View deployment
@react-sizebot

react-sizebot commented Aug 20, 2024

Copy link
Copy Markdown

Comparing: 4c2dfb3126f87fc270ad8a07d6180744d25cc585...430f5aeb10135c368e2a0afb06c3970ca3161768

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 500.37 kB 500.37 kB = 89.80 kB 89.80 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 507.50 kB 507.50 kB = 90.96 kB 90.96 kB
facebook-www/ReactDOM-prod.classic.js = 595.24 kB 595.24 kB = 105.55 kB 105.55 kB
facebook-www/ReactDOM-prod.modern.js = 571.54 kB 571.54 kB = 101.75 kB 101.75 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 6f051ab

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kassens
kassens approved these changes Aug 20, 2024
View reviewed changes
Comment thread scripts/jest/setupTests.js
};

const coerceGateConditionToFunction = gateFnOrString => {
return typeof gateFnOrString === 'string'

@kassens kassens Aug 20, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this improvement, it could be nice to assert a boolean result of the function to fail earlier.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eps1lon eps1lon Aug 20, 2024

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was thinking the same. Would help clean up removed flags.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@acdlite acdlite Aug 20, 2024

Copy link
Copy Markdown
Collaborator Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would help clean up removed flags.

there's already an error if you reference a flag that doesn't exist

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kassens reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@acdlite
acdlite merged commit e831c23 into react:main Aug 20, 2024
@eps1lon eps1lon mentioned this pull request Aug 22, 2024
Update React from 1eaccd82-20240816 to eb3ad065-20240822 vercel/next.js#69196
Merged
eps1lon added a commit to vercel/next.js that referenced this pull request Aug 23, 2024
@eps1lon
Update React from 1eaccd82-20240816 to eb3ad065-20240822 (#69196)
6c09bd9
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-1eaccd82-20240816` to `19.0.0-rc-eb3ad065-20240822`**

No changes required in Next.js it seems.

[diff
react/react@1eaccd82...eb3ad065](react/react@1eaccd8...eb3ad06)
<details>
<summary>React upstream changes</summary>

- react/react#30761
- react/react#30779
- react/react#30775
- react/react#30770
- react/react#30756
- react/react#30755
- react/react#30768
- react/react#30760
- react/react#30732
- react/react#30757
- react/react#30750
- react/react#30751
- react/react#30753
- react/react#30740
- react/react#30748
- react/react#30746
- react/react#30747
- react/react#30731
- react/react#30725
- react/react#30741
- react/react#30730
- react/react#30726
- react/react#30717
- react/react#30729
- react/react#30721
- react/react#30720
- react/react#30705

</details>
@rickhanlonii rickhanlonii mentioned this pull request Dec 19, 2024
[assert helpers] not dom or reconciler #31862
Merged
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@acdlite
Test infra: Support gate('enableFeatureFlag') (react#30760)
1600055
Shortcut for the common case where only a single flag is checked. Same
as `gate(flags => flags.enableFeatureFlag)`.

Normally I don't care about these types of conveniences but I'm about to
add a lot more inline flag checks these all over our tests and it gets
noisy. This helps a bit.

This branch was successfully deployed

1 active deployment
Preview — 6f051ab7 Deployed Aug 20, 2024 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@eps1lon eps1lon eps1lon left review comments
+1 more reviewer
@kassens kassens kassens approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@acdlite @react-sizebot @kassens @eps1lon @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.