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

Add an optional cleanup closure to the use effect hook #1650

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

ealmloff
Copy link
Member

Allows users to return an optional cleanup closure from the use effect hook like react allows. This makes it easier to clean up any effects that effect dom elements.

@ealmloff ealmloff added enhancement New feature or request hooks Changes to built-in hook package labels Nov 19, 2023
ealmloff and others added 2 commits November 21, 2023 16:28
Co-authored-by: Marc Espín <mespinsanz@gmail.com>
@jkelleyrtp jkelleyrtp merged commit ad885ec into DioxusLabs:master Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hooks Changes to built-in hook package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants