vueuse
vueuse copied to clipboard
Collection of essential Vue Composition Utilities for Vue 2 and 3
### Describe the bug With certain combinations of overscan and low element counts, it can happen that the virtual list is simply missing a few elements. For example, I tweaked...
### Describe the bug `useFocusWithin` typed as `Ref` not `ComputedRef` https://github.com/vueuse/vueuse/blob/main/packages/core/useFocusWithin/index.ts#L11 ### Reproduction https://stackblitz.com/edit/vitejs-vite-ctxonz/?file=src%2FApp.vue ### System Info ```Shell https://github.com/vueuse/vueuse/blob/main/packages/core/useFocusWithin/index.ts#L11 ``` ### Used Package Manager npm ### Validations - [X] Follow...
### Description ### Additional context --- ### What is the purpose of this pull request? - [ ] Bug fix - [x] New Feature - [ ] Documentation update -...
Hi! I love this library. I would like to suggest a utility called CachedRef(). ```ts const source = ref() const [expired, cached] = cachedRef(source, {cache: 1000}) ``` I would like...
Hi, Would you consider adding a useCaptcha function like this one for React? https://github.com/sakalx/useCaptcha vue-recaptcha-v3 exists for Vue 3 composition API but you need to make a global import and...
### Describe the bug The useMemoize documentation at https://vueuse.org/core/usememoize/#resolving-cache-key says > For Vue 2 the key has to be a string or number However, when trying to set `getKey` to...
### Description closes #1501 ### Additional context --- ### What is the purpose of this pull request? - [ ] Bug fix - [x] New Feature - [x] Documentation update...
### Description Added `emit` argument (for `useColorMode`) that can be used to control what should be returned when using the function with the following options: - `mode` (default): return a...
### Clear and concise description of the problem The only code example of createGlobalState documentation (https://vueuse.org/shared/createglobalstate/) is the following : ```ts import { createGlobalState, useStorage } from '@vueuse/core' export const...
### Describe the bug (Recreating the issue due to new major release. Old issue [here](https://github.com/vueuse/vueuse/issues/1659)) While using `useDrauu` from `@vueuse/integrations` inside a Nuxt 3 app the following error occurs: file:///home/projects/github-r9jhdg/node_modules/@vueuse/integrations/useDrauu.mjs:2...