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

Resize Middleware #384

Merged
merged 2 commits into from
Jun 12, 2019
Merged

Resize Middleware #384

merged 2 commits into from
Jun 12, 2019

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

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