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

useMedia - initialize state with call to media query #454

Merged
merged 1 commit into from
Jul 11, 2019
Merged

useMedia - initialize state with call to media query #454

merged 1 commit into from
Jul 11, 2019

Conversation

mattleonowicz
Copy link
Contributor

Initializing state with result from call to window.matchMedia avoids possible initial flicker of returned value, when media query matched initially

Initializing state with result from call to window.matchMedia avoids possible initial flicker of returned value, when media query matched initially
Copy link
Owner

@streamich streamich left a comment

Choose a reason for hiding this comment

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

Thanks!

@streamich streamich merged commit ab81897 into streamich:master Jul 11, 2019
streamich pushed a commit that referenced this pull request Jul 11, 2019
# [9.11.0](v9.10.0...v9.11.0) (2019-07-11)

### Features

* useMedia - initialize state with call to media query ([#454](#454)) ([ab81897](ab81897))
@streamich
Copy link
Owner

🎉 This PR is included in version 9.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mattleonowicz
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants