Skip to content
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

Allow functional updates to state #98

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

rikkuness
Copy link
Contributor

This fixes #97

I've added a couple of basic unit tests but let me know if there's any more you'd like to see.

@iamsolankiamit
Copy link
Member

This is good, thanks for the PR @rikkuness

@iamsolankiamit iamsolankiamit merged commit 90e4a65 into rehooks:master Jul 14, 2023
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.

state-update function should be able to receive a function with the old value
2 participants