Skip to content

Conversation

@rjrjr
Copy link
Collaborator

@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 a team and zach-klippenstein 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.

4 participants