Skip to content

Commit 7deb3f0

Browse files
committed
chore: up pinia colada usage
1 parent c3297e4 commit 7deb3f0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

playground/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import App from './App.vue'
33
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders'
44
import { MutationCache, QueryCache, VueQueryPlugin } from '@tanstack/vue-query'
55
import { createPinia } from 'pinia'
6-
import { QueryPlugin } from '@pinia/colada'
6+
import { PiniaColada } from '@pinia/colada'
77
import { router } from './router'
88

99
const app = createApp(App)
1010

1111
app.use(createPinia())
12-
app.use(QueryPlugin)
12+
app.use(PiniaColada)
1313
app.use(VueQueryPlugin, {
1414
queryClientConfig: {
1515
mutationCache: new MutationCache({

playground/src/pages/users/tq-query.[id].vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import {
1111
useIsFetching,
1212
useMutationState,
1313
useMutation,
14+
useQueryClient,
1415
} from '@tanstack/vue-query'
1516
1617
const route = useRoute('/users/[id]')
1718
1819
const simulateError = ref(false)
1920
20-
const enabled = ref(false)
21+
const enabled = ref(true)
2122
2223
// const tt = useQueries({
2324
// queries: [

0 commit comments

Comments
 (0)