Skip to content

VueQueryComposables type requires all composables #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
austin-agronick opened this issue Apr 24, 2025 · 0 comments
Open

VueQueryComposables type requires all composables #113

austin-agronick opened this issue Apr 24, 2025 · 0 comments

Comments

@austin-agronick
Copy link

austin-agronick commented Apr 24, 2025


This seems to support auto importing less than all available composables, but the type does not. This should fix it:

export type VueQueryComposables =
  | 'useQuery'
  | 'useQueries'
  | 'useInfiniteQuery'
  | 'useMutation'
  | 'useIsFetching'
  | 'useIsMutating'
  | 'useQueryClient'

const autoImports: VueQueryComposables[] | false = ['useQuery', 'useMutation']

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant