Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: first render consistency of useBreakpointValue in SSR+CSR envs (#…
…5651) * test(media-query): fixed that the same environment as SSR could not be reproduced * fix(media-query): don't ignore defaultBreakpoint when using SSR * chore: add changeset * test(media-query): add 2xl into test breakpoints * fix: first render consistency in SSR+CSR envs * fix: move default value for defaultBreakpoint to useBreakpoint Co-authored-by: ishowta <ishowta@gmail.com>
- Loading branch information
1 parent
27eec8d
commit d6bed34
Showing
6 changed files
with
85 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@chakra-ui/media-query": patch | ||
--- | ||
|
||
- Fixed an issue that undefined is returned when calling the hook | ||
`useBreakpoint` with `defaultValue` specified in SSR | ||
|
||
- Fixed an issue where the value of `useBreakpointValue` in CSR did not match | ||
SSR. |
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
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
d6bed34
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: