GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Test infra: Support gate('enableFeatureFlag') by acdlite · Pull Request #30760 · react/react Conversation
Collaborator
Shortcut for the common case where only a single flag is checked. Same as 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 reactionsShortcut 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.
|
There was an error while loading. Please reload this page.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Comparing: 4c2dfb3126f87fc270ad8a07d6180744d25cc585...430f5aeb10135c368e2a0afb06c3970ca3161768 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| }; | ||
|
|
||
| const coerceGateConditionToFunction = gateFnOrString => { | ||
| return typeof gateFnOrString === 'string' |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
**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>
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.
6f051ab7
Deployed
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.