Skip to content

feat: add functional updater support to setValue#91

Closed
mfazekas wants to merge 14 commits into
mainfrom
mfazekas/setter-updater-function
Closed

feat: add functional updater support to setValue#91
mfazekas wants to merge 14 commits into
mainfrom
mfazekas/setter-updater-function

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

Allows setValue to accept a function that receives the previous value, similar to React's setState pattern.

setValue((v) => (v ?? 0) + 5)

@mfazekas
Copy link
Copy Markdown
Collaborator Author

Closing - branch was incorrectly based on mfazekas/use-rive-list instead of main. Will recreate.

@mfazekas mfazekas closed this Dec 17, 2025
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.

1 participant