Skip to content

Conversation

@agubler
Copy link
Member

@agubler agubler commented Jun 6, 2019

Type: feature

The following has been addressed in the PR:

Description:

Middleware using ResizeObservers, invalidates when a node resizes and returns the ContentRect dimensions.

Resolves #383

keys.push(key);
const resizeObserver = new ResizeObserver(([entry]) => {
cache.set(key, entry.contentRect);
invalidator();
Copy link
Contributor

Choose a reason for hiding this comment

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

icache for this? 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@agubler agubler force-pushed the resize-middleware branch from 9e62484 to 5a75400 Compare June 7, 2019 12:22
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.

Resize Middleware

2 participants