Skip to content

Commit

Permalink
lint render
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Dec 2, 2024
1 parent 4075355 commit 949fc2c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/packages/core/src/components/Grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ function Grid() {
retainItems: true,
rowAspectRatioThreshold: threshold,
get: (next) => page(next),
render: (id, element, dimensions, soft, hide) => {
render: (id, element, dimensions, zooming) => {
if (lookerStore.has(id.description)) {
const looker = lookerStore.get(id.description);
hide ? looker?.disable() : looker?.attach(element, dimensions);

lookerStore.get(id.description)?.attach(element, dimensions);
return;
}

Expand All @@ -84,7 +82,7 @@ function Grid() {
throw new Error("bad data");
}

if (soft) {
if (zooming) {
// we are scrolling fast, skip creation
return;
}
Expand Down

0 comments on commit 949fc2c

Please sign in to comment.