diff --git a/packages/grid/src/index.ts b/packages/grid/src/index.ts index 5fb74defd87..e6645936dc9 100644 --- a/packages/grid/src/index.ts +++ b/packages/grid/src/index.ts @@ -243,12 +243,8 @@ export class Grid { this.height = rect.height } }) - const mutationObserver = new MutationObserver(() => { - requestAnimationFrame(digestChild) - }) - const resizeObserver = new ResizeObserver(() => { - requestAnimationFrame(digestSize) - }) + const mutationObserver = new MutationObserver(digestChild) + const resizeObserver = new ResizeObserver(digestSize) resizeObserver.observe(this.container) mutationObserver.observe(this.container, { attributeFilter: ['style'],