Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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