Skip to content

Commit df97184

Browse files
committed
add note
1 parent 8288220 commit df97184

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/svelte/src/reactivity/media-query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { on } from '../events/index.js';
55
* Creates a media query and provides a `current` property that reflects whether or not it matches.
66
*
77
* Use it carefully — during server-side rendering, there is no way to know what the correct value should be, potentially causing content to change upon hydration.
8+
* If you can use the media query in CSS to achieve the same effect, do that.
89
*
910
* ```svelte
1011
* <script>

0 commit comments

Comments
 (0)