@skyscanner/backpack-web 41.15.1 → 41.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,7 +42,7 @@ const useLegacyWarning = (query, legacy, isClient) => useMemo(() => {
|
|
|
42
42
|
const BpkBreakpoint = ({
|
|
43
43
|
children,
|
|
44
44
|
legacy = false,
|
|
45
|
-
matchSSR
|
|
45
|
+
matchSSR,
|
|
46
46
|
query
|
|
47
47
|
}) => {
|
|
48
48
|
/**
|
|
@@ -64,7 +64,7 @@ const BpkBreakpoint = ({
|
|
|
64
64
|
return matches ? children : null;
|
|
65
65
|
}
|
|
66
66
|
if (typeof children === 'function') {
|
|
67
|
-
return children(matchSSR);
|
|
67
|
+
return children(!!matchSSR);
|
|
68
68
|
}
|
|
69
69
|
return matchSSR ? children : null;
|
|
70
70
|
};
|