Skip to content

🐛 Fix ResizeObserver limit loop #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Conversation

fyvfyv
Copy link
Contributor

@fyvfyv fyvfyv commented Jan 20, 2023

After the last Chrome's update to version 109, there is the issue with ResizeObserver limit loop, because of infinity loop. It happens because we always update cursors, which registers the new observer. Let's return from the function and prevent creating new observer for cases, when it should stop observing

@fyvfyv fyvfyv requested a review from alecgibson January 20, 2023 08:07
Copy link
Collaborator

@alecgibson alecgibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please update the CHANGELOG and rebase?

After the last Chrome's update to version 109, there is the issue with
`ResizeObserver limit loop`, because of infinity loop. It happens
because we **always** update cursors, which registers the new observer.
Let's return from the function and prevent creating new observer for
cases, when it should stop observing
@fyvfyv fyvfyv force-pushed the fix-resize-observer-loop branch from d4e00f5 to e5efba4 Compare January 20, 2023 11:23
@fyvfyv fyvfyv requested a review from alecgibson January 20, 2023 11:23
@fyvfyv fyvfyv merged commit e9b684b into main Jan 20, 2023
@fyvfyv fyvfyv deleted the fix-resize-observer-loop branch January 20, 2023 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants