Skip to content

refactor: move away from "setValues" #9848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thomasheartman
Copy link
Contributor

This is a draft PR and a work in progress. The ultimate goal of it is to move away from the "setValues" function that we pass around in favor of more action-oriented "addValues", "clearValues", "removeValues" functions.

Why? Initially, it was to take away the burden of having to deduplicate incoming values and merging them with the existing values downstream. This feels like internal logic that they shouldn't have to deal with. Locking down the API like that also makes it easier to test.

Copy link

vercel bot commented Apr 28, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Apr 28, 2025 11:29am

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@chriswk chriswk moved this from New to In Progress in Issues and PRs Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant