Mateu
05/24/2023, 10:46 AMoverride fun onRemeasured(size: IntSize) {
if (previousSize != size) {
onSizeChanged(size)
previousSize = size
}
}
But as the modifier is not remembered, in each recomposition it is recreated and the previousSize is lost.
Would it be a good strategy to remember the modifier? Or should I create a remembered state to filter the events (even though the view is not updated with this state)?
Thanks,