Skip to content

Return media query value from useMedia on initial render#78

Open
jackjocross wants to merge 1 commit intomasterfrom
feature/use-media-initial-render
Open

Return media query value from useMedia on initial render#78
jackjocross wants to merge 1 commit intomasterfrom
feature/use-media-initial-render

Conversation

@jackjocross
Copy link
Copy Markdown
Contributor

This PR runs window.matchMedia for the initial render of useMedia if we're not on the server so that layouts can be correctly determined.

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.

1 participant