Skip to content

Commit

Permalink
fix(core): circular reference (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed May 3, 2022
1 parent c0c15bc commit df9dd89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/core/onLongPress/index.ts
@@ -1,6 +1,7 @@
import type { MaybeElementRef } from '@vueuse/core'
import { unrefElement, useEventListener } from '@vueuse/core'
import { computed } from 'vue-demi'
import type { MaybeElementRef } from '../unrefElement'
import { unrefElement } from '../unrefElement'
import { useEventListener } from '../useEventListener'

const DEFAULT_DELAY = 500

Expand Down
3 changes: 2 additions & 1 deletion packages/core/useGamepad/index.ts
@@ -1,7 +1,8 @@
import { createEventHook, tryOnMounted } from '@vueuse/shared'
import { useEventListener, useRafFn } from '@vueuse/core'
import type { Ref } from 'vue-demi'
import { computed, ref } from 'vue-demi'
import { useRafFn } from '../useRafFn'
import { useEventListener } from '../useEventListener'
import type { ConfigurableNavigator, ConfigurableWindow } from '../_configurable'
import { defaultNavigator } from '../_configurable'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/useOffsetPagination/index.ts
@@ -1,7 +1,7 @@
import type { ComputedRef, Ref, UnwrapNestedRefs } from 'vue-demi'
import { computed, isRef, reactive, unref, watch } from 'vue-demi'
import type { MaybeRef } from '@vueuse/core'
import { noop, syncRef } from '@vueuse/shared'
import type { MaybeRef } from '@vueuse/shared'
import { useClamp } from '../useClamp'

export interface UseOffsetPaginationOptions {
Expand Down

0 comments on commit df9dd89

Please sign in to comment.