Skip to content

resizeObserver - refactor how to avoid loop limit errors #7942

@thatblindgeye

Description

@thatblindgeye

Is this a new component or an extension of an existing one?
resizeObserver helper

Describe the feature
This is a placeholder for discussion/research on how to possible refactor our getResizeObserver method. Currently it uses requestAnimationFrame to avoid loop limit errors from occurring, though when a debounced method is passed in there may still be some visual "flickering" occurring.

One option discussed was updating the proposal made in #7941 so that consumers would opt-in to use requestAnimationFrame, rather than opting out of using it.

Any other information?
Possibly related conversation in a Stack Overflow post:
https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded

Metadata

Metadata

Assignees

Labels

Breaking change 💥this change requires a major release and has API changes.PF5

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions