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

Introduces SavedStateHandle.removeWorkflowState() #1227

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

rjrjr
Copy link
Contributor

@rjrjr rjrjr commented Nov 5, 2024

If you're juggling multiple workflow runtimes per Activity (if you're the kind of person who needs to call Job.cancel on the Job returned from WorkflowLayout.take) then you might also need to throw away the state captured by an AndroidX SavedStateHandler passed to the Android flavor of renderWorkflowIn() to prevent memory leaks.

@rjrjr rjrjr requested review from zach-klippenstein and a team as code owners November 5, 2024 00:50
@rjrjr rjrjr force-pushed the ray/scrub-viewmodel-state branch from 12b674c to 2625d26 Compare November 5, 2024 00:50
@rjrjr rjrjr force-pushed the ray/scrub-viewmodel-state branch from 2625d26 to 34d2f95 Compare November 5, 2024 01:01
@rjrjr rjrjr force-pushed the ray/scrub-viewmodel-state branch from 34d2f95 to b1dd821 Compare November 5, 2024 16:06
If you're juggling multiple workflow runtimes per `Activity` (if you're the kind of person who needs to call `Job.cancel` on the `Job` returned from `WorkflowLayout.take`) then you might also need to throw away the state captured by an AndroidX `SavedStateHandler` passed to the Android flavor of `renderWorkflowIn()` to prevent memory leaks.
@rjrjr rjrjr force-pushed the ray/scrub-viewmodel-state branch from b1dd821 to c905ad1 Compare November 5, 2024 16:12
@rjrjr rjrjr enabled auto-merge November 5, 2024 16:13
@rjrjr rjrjr disabled auto-merge November 5, 2024 16:47
@rjrjr rjrjr merged commit 278b16b into main Nov 5, 2024
30 checks passed
@rjrjr rjrjr deleted the ray/scrub-viewmodel-state branch November 5, 2024 16:47
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