Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit e98e3f8

Browse files
refactor(c-media-query): replace unref for query value with .value
1 parent 016492a commit e98e3f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/c-media-query/src/c-hide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const CHide: ComponentWithProps<CHideProps> = defineComponent({
2525
setup(props, { slots }) {
2626
const query = useQuery(props)
2727
return () => (
28-
<CVisibility breakpoint={unref(query)} hide>
28+
<CVisibility breakpoint={query.value} hide>
2929
{() => getValidChildren(slots)}
3030
</CVisibility>
3131
)

packages/c-media-query/src/c-show.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const CShow: ComponentWithProps<CShowProps> = defineComponent({
4141
const query = useQuery(props)
4242
return () => {
4343
return (
44-
<CVisibility breakpoint={unref(query)}>
44+
<CVisibility breakpoint={query.value}>
4545
{() => getValidChildren(slots)}
4646
</CVisibility>
4747
)

0 commit comments

Comments
 (0)