Skip to content

Update useUpdateWithSetter to not cause a react render loop when the setter fails #132

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

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

jorgea-stripe
Copy link
Contributor

A setter can fail on invalid values, and it can also fail when it is not defined. We want to avoid causing the entire react tree to fail rendering.

@jorgea-stripe jorgea-stripe merged commit 53312fc into preview Oct 14, 2024
2 checks passed
@jorgea-stripe jorgea-stripe deleted the jorgea/bringback branch October 14, 2024 17:26
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