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

Dispose of the composition when we're done with it. #2494

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

swankjesse
Copy link
Collaborator

Initially I'm adding just the test we already pass, where the effect is executed because it is removed from the composition.

#2248

This adds a test for DisposableEffect callbacks.

#2248
@swankjesse swankjesse force-pushed the jwilson.1209.disposable_test branch from 7bba4bc to 596d8aa Compare December 9, 2024 17:01
@swankjesse swankjesse changed the title Add a test for DisposableEffect callbacks Dispose of the composition when we're done with it. Dec 9, 2024
@@ -79,6 +80,7 @@ internal object JvmHeap : Heap {

// Don't traverse further on types that are unlikely to contain application-scoped data.
// We want to avoid loading the entire application heap into memory!
instance is AtomicLongFieldUpdater<*> -> listOf()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests demanded this

@swankjesse swankjesse merged commit 989d7b4 into trunk Dec 10, 2024
11 checks passed
@swankjesse swankjesse deleted the jwilson.1209.disposable_test branch December 10, 2024 16:21
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.

3 participants