Skip to content

Make WorkflowSavedStateRegistryAggregator.attachToParentRegistryOwner more convenient. #681

Open
@rjrjr

Description

@rjrjr

There are three copies of this fragment floating around:

    val parentRegistryOwner = stateRegistryOwnerFromViewTreeOrContext(this)
    val key = Compatible.keyFor(this.getRendering()!!)
    viewStateCache.attachToParentRegistryOwner(key, parentRegistryOwner)

Add an overload of WorkflowSavedStateRegistryAggregator.attachToParentRegistryOwner that takes a View and enshrines the convention.

Hide the existing method or leave it public? I have a hunch we may find ourselves calling it from Compose some day, if we start using its dialog() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    composeuiRelated to UI integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions