-
Notifications
You must be signed in to change notification settings - Fork 312
Open
Description
@Composable
fun KonfettiView(
modifier: Modifier = Modifier,
parties: List<Party>,
updateListener: OnParticleSystemUpdateListener? = null
) The KonfettiView composable is non-skippable and non-restartable because the parties parameter is unstable, as well as OnParticleSystemUpdateListener
Soluiton:
Replace update listener with a lambda using rememberUpdatedState and wrap List<Parties> in an object that is marked as @Immutable
This issue has a serious performance impact as ConfettiView is being recomposed every time unrelated parameters change.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels