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