[Masonry] Fix ResizeObserver loop limit exceeded error#37208
[Masonry] Fix ResizeObserver loop limit exceeded error#37208hbjORbj merged 4 commits intomui:masterfrom
Conversation
Netlify deploy previewhttps://deploy-preview-37208--material-ui.netlify.app/ Bundle size report |
mnajdova
left a comment
There was a problem hiding this comment.
Left just one comment for clarifying the need for the new line added.
|
@mnajdova : when will it be deployed? |
Co-authored-by: Marija Najdova <mnajdova@gmail.com> Signed-off-by: Diego Andai <diego@mui.com>
|
@hbjORbj may we merge this one? 😊 |
|
@SanNic20 This will be deployed on upcoming Monday. |
|
Was this implemented as I am still receiving the error (ResizeObserver loop limit exceeded)? |
|
Hey @aakif-quayyum sorry for this, the error should be fixed in |
|
Yes, @DiegoAndai following the release of @mui/lab version 5.0.0-alpha.135 I no longer experieance this error, thanks a lot! |
|
Working Fine now Thanks Guys. npm install @mui/lab@5.0.0-alpha.135 |
Closes #36909
Problem
ResizeObserver loop limit exceedederror is thrown when dynamically updating masonry children or refreshing the browser.Solution
requestAnimationFrame, we can limit the execution to a single frame.Before
before.mov
After
after.mov
https://codesandbox.io/s/exciting-brattain-p010gm?file=/demo.tsx:0-1249