-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(useMedia): enhance SSR support by setting state during component …
…mount (#2774) To avoid rehydration disturbance. The return values like `isSmall` will now always be false to start with. This should not be a breaking change, because on the client, it results as before. I have not tested this hook IRL. Maybe someone can do that for me?
- Loading branch information
1 parent
2ad2c54
commit d72aa2b
Showing
3 changed files
with
168 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters