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

Fix Asynchronous Operations in Button Event Handlers #32

Merged
merged 5 commits into from
Dec 10, 2023

Conversation

lauslim12
Copy link
Owner

For details, please see #31. Basically, this PR fixes the problems in the components by explicitly passing the new values instead of relying on the state. Also implements lazy initialization for initialValue, so we can safely remove the useEffect.

Additionally, implements end-to-end tests for safety.

Resolves #31.

@lauslim12 lauslim12 merged commit 31c415e into main Dec 10, 2023
2 checks passed
@lauslim12 lauslim12 deleted the 31-fix-async-operations-bug branch December 10, 2023 11:09
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.

Asynchronous Operation: Clear content and Undo clear Bug
1 participant