Skip to content

[DrawablePainter] Use mutableStateOf(Unit, neverEqualPolicy()) / mutableIntStateOf to invalidate #1822

Open
@FooIbar

Description

@FooIbar


Could be replaced with mutableStateOf(Unit, neverEqualPolicy()).
Though according to this there is an internal bug which I can't tell if it's already addressed.
If not, mutableIntStateOf can be used instead.

private var drawableIntrinsicSize by mutableStateOf(drawable.intrinsicSize)

Can also be replaced with mutableLongStateOf but I'm not sure if it's worth it.

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