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

Add contentResizeEmitter to track content sizing changes #111

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

jscheel
Copy link
Contributor

@jscheel jscheel commented Apr 14, 2021

No description provided.

@jscheel jscheel added enhancement New feature or request minor Increment the minor version when merged release Create a release when this pr is merged labels Apr 14, 2021
@jscheel jscheel requested a review from assimovt April 14, 2021 20:06
Copy link

@assimovt assimovt left a comment

Choose a reason for hiding this comment

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

Looks good

// we instead have to do the work here. Also, we have to emit the size changes
// via an emitter, instead of setting state that gets passed into the context
// because we a) don't want to update the state that often, and b) updating
// the state in the middle of the page transitions will break framer-motion.

Choose a reason for hiding this comment

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

👍

@jscheel
Copy link
Contributor Author

jscheel commented Apr 15, 2021

@jscheel jscheel merged commit 376a5c5 into master Apr 15, 2021
@jscheel jscheel deleted the content-resize-observer branch April 15, 2021 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Increment the minor version when merged release Create a release when this pr is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants