Skip to content

Update/v2/utils/wrap setter#884

Open
atk wants to merge 2 commits into
nextfrom
update/v2/utils/wrap-setter
Open

Update/v2/utils/wrap setter#884
atk wants to merge 2 commits into
nextfrom
update/v2/utils/wrap-setter

Conversation

@atk
Copy link
Copy Markdown
Member

@atk atk commented May 8, 2026

New wrapSetter primitive that wraps setters of signals and stores

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: b1442c5

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@atk atk changed the base branch from main to next May 8, 2026 19:08
Comment thread packages/utils/README.md
(setter) => {
const output = setState();
localStorage.setItem('persistedState', latest(() => JSON.stringify(state)));
return output;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

so this returns a new setter?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed the error in the docs.

@atk atk force-pushed the update/v2/utils/wrap-setter branch from 95c9b10 to 89c5324 Compare May 11, 2026 07:01
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