Skip to content

Commit

Permalink
Discard zero snapshots (#3030)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry authored Jan 27, 2025
1 parent a7926e2 commit 90a3dfb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,14 @@ export function createProjectionNode<I>({
if (this.snapshot || !this.instance) return

this.snapshot = this.measure()

if (
this.snapshot &&
!calcLength(this.snapshot.measuredBox.x) &&
!calcLength(this.snapshot.measuredBox.y)
) {
this.snapshot = undefined
}
}

updateLayout() {
Expand Down

0 comments on commit 90a3dfb

Please sign in to comment.