You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifier.sentryTag is creating a new lambda for the semantics property on every call, causing a non-equal Modifier to be created on each recomposition, causing composables to never be skipped.
A simple fix would be to annotate this method with @Composable, so that it could reuse the lambda across subsequent calls.
Otherwise, if that's not an option (it could break assumptions made by developers already), it's likely best to create a Modifier.Node for this.
The text was updated successfully, but these errors were encountered:
hi @richkzad thanks for the report, I feel like Modifer.Node was introduced after we shipped the sentryTag and we never looked back at it. We'll investigate further, thanks again!
Modifier.sentryTag
is creating a new lambda for the semantics property on every call, causing a non-equalModifier
to be created on each recomposition, causing composables to never be skipped.A simple fix would be to annotate this method with
@Composable
, so that it could reuse the lambda across subsequent calls.Otherwise, if that's not an option (it could break assumptions made by developers already), it's likely best to create a
Modifier.Node
for this.The text was updated successfully, but these errors were encountered: