Open History to see the last commit
1import { createApp } from 'vue'
2import { VueQueryPlugin } from '@tanstack/vue-query'
3import type { VueQueryPluginOptions } from '@tanstack/vue-query'
4β
5import App from './App.vue'
6β
7const vueQueryOptions: VueQueryPluginOptions = {
8 queryClientConfig: {
9 defaultOptions: {
10 queries: {
11 gcTime: 1000 * 60 * 60 * 24,
12 // staleTime: 1000 * 10,
13 },
14 },
15 },
16}
17β
18createApp(App).use(VueQueryPlugin, vueQueryOptions).mount('#app')