-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
useResponsiveProps does not respect behavior on SSR #284
Comments
The problemWhat causes this issue is the lack of Solution 1: Custom
|
export interface Template { | |
breakpoint: Breakpoint | |
behavior: BreakpointBehavior | |
areas: string[] | |
} |
It's possible to compile a prop info into this kind of format, but I doubt it's necessary.
What:
Props returned from
useResponsiveProps
does not respect common responsive props behaviors.Why:
The responsive props matcher used on the server accounts only for the default breakpoint. So
LgDown
prop won't apply (although it should), because "lg" is not the default breakpoint.Environment:
0.12.2
Reproduction steps:
During SSR the background color won't be present at all. It should be red.
Related issues:
The text was updated successfully, but these errors were encountered: