File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import App from './App.vue'
3
3
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders'
4
4
import { MutationCache , QueryCache , VueQueryPlugin } from '@tanstack/vue-query'
5
5
import { createPinia } from 'pinia'
6
- import { QueryPlugin } from '@pinia/colada'
6
+ import { PiniaColada } from '@pinia/colada'
7
7
import { router } from './router'
8
8
9
9
const app = createApp ( App )
10
10
11
11
app . use ( createPinia ( ) )
12
- app . use ( QueryPlugin )
12
+ app . use ( PiniaColada )
13
13
app . use ( VueQueryPlugin , {
14
14
queryClientConfig : {
15
15
mutationCache : new MutationCache ( {
Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ import {
11
11
useIsFetching ,
12
12
useMutationState ,
13
13
useMutation ,
14
+ useQueryClient ,
14
15
} from ' @tanstack/vue-query'
15
16
16
17
const route = useRoute (' /users/[id]' )
17
18
18
19
const simulateError = ref (false )
19
20
20
- const enabled = ref (false )
21
+ const enabled = ref (true )
21
22
22
23
// const tt = useQueries({
23
24
// queries: [
You can’t perform that action at this time.
0 commit comments