Skip to content

Experiments - #486

Open
dferber90 wants to merge 18 commits into
mainfrom
experiments
Open

Experiments#486
dferber90 wants to merge 18 commits into
mainfrom
experiments

Conversation

@dferber90

Copy link
Copy Markdown
Collaborator

An exploration of experimentation features

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flags-playground Ready Ready Preview, v0 Sep 4, 2026 8:56am UTC
flags-sdk-dev Ready Ready Preview, v0 Sep 4, 2026 8:56am UTC
flags-sdk-snippets Ready Ready Preview, v0 Sep 4, 2026 8:56am UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Sep 4, 2026 8:56am UTC
shirt-shop Ready Ready Preview, v0 Sep 4, 2026 8:56am UTC
shirt-shop-api Ready Ready Preview, v0 Sep 4, 2026 8:56am UTC

@dferber90
dferber90 marked this pull request as ready for review August 31, 2026 12:15
@dferber90
dferber90 marked this pull request as draft August 31, 2026 12:15
entities?: E,
): Promise<void> => {
try {
const instance = controllerInstanceMap.get(id);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we also check if reporting is disabled before doing all the below work? I know it is also checked in the report method, but we could save us some work if we do a check here already and return early.

const variantIndex = definition.variants.findIndex(
(variant) =>
Object.is(variant, value) ||
JSON.stringify(variant) === serializedValue,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't this a bit tricky with JSON values? They could contain the same keys but in a different order. So their content would technically be the same, just stringifying and comparing would say they're different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants