Skip to content

wrap handler for resize observer in requestAnimationFrame()#183325

Merged
alexdima merged 6 commits intomicrosoft:mainfrom
kfrederix:bug/183324_resizeobserver_loop_limit_exceeded
Aug 31, 2023
Merged

wrap handler for resize observer in requestAnimationFrame()#183325
alexdima merged 6 commits intomicrosoft:mainfrom
kfrederix:bug/183324_resizeobserver_loop_limit_exceeded

Conversation

@kfrederix
Copy link
Contributor

Wrapping the ResizeObserver callback in requestAnimationFrame() should avoid the "loop limit exceeded" error which pops up under certain circumstances.

(fixes #183324)

@alexdima alexdima added this to the August 2023 milestone Jul 27, 2023
@kfrederix
Copy link
Contributor Author

@microsoft-github-policy-service agree

@kfrederix
Copy link
Contributor Author

@alexdima thank you for taking care of this!! 🙏

@kfrederix
Copy link
Contributor Author

@alexdima I see that we have enough approvals. Is it ok to close this PR?

@alexdima alexdima merged commit 9293e05 into microsoft:main Aug 31, 2023
@simonh1000
Copy link

simonh1000 commented Sep 12, 2023

Is this fix being added to Monaco - that's where I need it and 0.43 continues to exhibit this bug

@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error "ResizeObserver loop limit exceeded" when using monaco editor with automaticLayout option

6 participants