Skip to content

RA-64264 Make WorkflowLayout sample based on the frame clock #1257

Open
@rjrjr

Description

@rjrjr

The renderings: Flow<Screen> provided to WorkflowLayout.take() can fire a lot more often than is useful, especially in large apps that don't use initialState / StateFlow.value effectively. Can take buffer what it receives, keeping only the latest, and take care to call [show] either once or never for frame clock tick?

Remember that it is absolutely fine to drop renderings; each time a new rendering appears it means that the combined workflow state has changed, and the previous ones are now invalid. We're not an animation tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    optimizationIssues related to benchmarking and optimizationuiRelated to UI integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions