Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/container-ref-reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
eliamartani committed May 2, 2024
2 parents 40715c8 + b7d8438 commit e97db65
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/onLongPress/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function resetDirective() {
<button
v-on-long-press="[onLongPressCallbackDirective, { delay: 1000, modifiers: { stop: true } }]"
class="ml-2button small"
class="ml-2 button small"
>
Press long (with options)
</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/useDevicePixelRatio/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category: Sensors

# useDevicePixelRatio

Reactively track [`window.devicePixelRatio`](https://developer.mozilla.org/ru/docs/Web/API/Window/devicePixelRatio)
Reactively track [`window.devicePixelRatio`](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)

> NOTE: there is no event listener for `window.devicePixelRatio` change. So this function uses [`Testing media queries programmatically (window.matchMedia)`](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries) applying the same mechanism as described in [this example](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio#monitoring_screen_resolution_or_zoom_level_changes).
Expand Down
2 changes: 1 addition & 1 deletion packages/core/useMounted/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function useMounted() {
if (instance) {
onMounted(() => {
isMounted.value = true
}, isVue2 ? null : instance)
}, isVue2 ? undefined : instance)
}

return isMounted
Expand Down
2 changes: 1 addition & 1 deletion packages/core/useMousePressed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface MousePressedOptions extends ConfigurableWindow {
}

/**
* Reactive mouse position.
* Reactive mouse pressing state.
*
* @see https://vueuse.org/useMousePressed
* @param options
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Install

```bash
npm i @vueuse/nuxt
npm i @vueuse/nuxt @vueuse/core
```

```ts
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/ssr-plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ setSSRHandler('getDefaultStorage', () => {
}
})

if (process.server) {
if (import.meta.server) {
setSSRHandler('updateHTMLAttrs', (selector, attr, value) => {
if (selector === 'html') {
useHead({
Expand Down

0 comments on commit e97db65

Please sign in to comment.