You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/components/use-media-query/use-media-query.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,12 +164,13 @@ You can reproduce the same behavior with a `useWidth` hook:
164
164
-`options.defaultMatches` (*Boolean*[optional]):
165
165
As `window.matchMedia()` is unavailable on the server,
166
166
we return a default matches during the first mount. The default value is `false`.
167
+
-`options.matchMedia` (*Function*[optional]) You can provide your own implementation of *matchMedia*. This can be used for handling an iframe content window.
167
168
-`options.noSsr` (*Boolean*[optional]): Defaults to `false`.
168
169
In order to perform the server-side rendering reconciliation, it needs to render twice.
169
170
A first time with nothing and a second time with the children.
170
171
This double pass rendering cycle comes with a drawback. It's slower.
171
172
You can set this flag to `true` if you are **not doing server-side rendering**.
172
-
-`options.ssrMatchMedia` (*Function*[optional]) You can provide your own implementation of *matchMedia*. This especially useful for [server-side rendering support](#server-side-rendering).
173
+
-`options.ssrMatchMedia` (*Function*[optional]) You can provide your own implementation of *matchMedia* in a [server-side rendering context](#server-side-rendering).
173
174
174
175
Note: You can change the default options using the [`default props`](/customization/globals/#default-props) feature of the theme with the `MuiUseMediaQuery` key.
0 commit comments