Skip to content
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

fix(KTL-1177): Resize Observer has indefinite loop #3116

Merged
merged 2 commits into from Sep 5, 2023

Conversation

zoobestik
Copy link
Contributor

symbol wrapper script in dokka has Infinity cycling code based on observe/unobserve inside resize handler.

MRE:

const observer = new ResizeObserver(entries => entries.forEach({ target } => {
  observer.unobserve(target);
  observer.observe(target); // fire re-call this ResizeObserver handler
}));

document.querySelectorAll('...').forEach(item => observer.observe(item));

Copy link
Member

@IgnatBeresnev IgnatBeresnev left a comment

Choose a reason for hiding this comment

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

👍 👍

@zoobestik zoobestik merged commit b26c79c into master Sep 5, 2023
11 checks passed
@zoobestik zoobestik deleted the ktl-1177-indefinite-loop branch September 5, 2023 10:33
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.

None yet

3 participants