Skip to content

Commit 733394b

Browse files
committed
refactor(useBreakpoints): remove defaults
1 parent f09eaf3 commit 733394b

File tree

1 file changed

+7
-7
lines changed
  • packages/0/src/composables/useBreakpoints

1 file changed

+7
-7
lines changed

packages/0/src/composables/useBreakpoints/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export function createBreakpoints<
9696
const name = shallowRef<BreakpointName>('xs')
9797
const width = shallowRef(0)
9898
const height = shallowRef(0)
99-
const isMobile = shallowRef(true)
100-
const xs = shallowRef(true)
99+
const isMobile = shallowRef(false)
100+
const xs = shallowRef(false)
101101
const sm = shallowRef(false)
102102
const md = shallowRef(false)
103103
const lg = shallowRef(false)
@@ -108,11 +108,11 @@ export function createBreakpoints<
108108
const lgAndUp = shallowRef(false)
109109
const xlAndUp = shallowRef(false)
110110
const xxlAndUp = shallowRef(false)
111-
const smAndDown = shallowRef(true)
112-
const mdAndDown = shallowRef(true)
113-
const lgAndDown = shallowRef(true)
114-
const xlAndDown = shallowRef(true)
115-
const xxlAndDown = shallowRef(true)
111+
const smAndDown = shallowRef(false)
112+
const mdAndDown = shallowRef(false)
113+
const lgAndDown = shallowRef(false)
114+
const xlAndDown = shallowRef(false)
115+
const xxlAndDown = shallowRef(false)
116116

117117
function update () {
118118
if (!IN_BROWSER) return

0 commit comments

Comments
 (0)