Skip to content

Commit 773728f

Browse files
authored
feat: update plugin init (#55)
1 parent 716972a commit 773728f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

bun.lockb

0 Bytes
Binary file not shown.

packages/vue-query-nuxt/src/runtime/plugin.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ export default defineNuxtPlugin((nuxt) => {
1919
vueQueryState.value = dehydrate(queryClient)
2020
})
2121
}
22-
if (process.client) {
23-
nuxt.hooks.hook("app:created", () => {
24-
hydrate(queryClient, vueQueryState.value)
25-
})
26-
}
22+
23+
if (process.client) hydrate(queryClient, vueQueryState.value)
24+
2725
return pluginReturn
2826
})

0 commit comments

Comments
 (0)