Skip to content

RenderContext passed into StatefulWorkflow#render is new instance every time #988

@weverb2

Description

@weverb2

Found issue when digging into to recompositions with @steve-the-edwards:

When render is called in a StatefulWorkflow, a new instance of RenderContext is passed each time, causing compose to be unhappy about any lambdas that would capture the RenderContext (like for actionSink calls).

We believe this issue to be the cast on L172 of StatefulWorkflow.kt never succeeding and always requiring a wrapped baseContext

Screenshot 2023-04-11 at 11 34 30 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions