changed route

This commit is contained in:
Mamalizz
2025-03-27 23:05:50 +03:30
parent c60f171b31
commit 29aeace00e
12 changed files with 10 additions and 5 deletions
+10 -5
View File
@@ -1,12 +1,12 @@
import type { import type {
DehydratedState, DehydratedState,
VueQueryPluginOptions VueQueryPluginOptions,
} from "@tanstack/vue-query"; } from "@tanstack/vue-query";
import { import {
VueQueryPlugin, VueQueryPlugin,
QueryClient, QueryClient,
hydrate, hydrate,
dehydrate dehydrate,
} from "@tanstack/vue-query"; } from "@tanstack/vue-query";
import { defineNuxtPlugin, useState } from "#imports"; import { defineNuxtPlugin, useState } from "#imports";
@@ -15,7 +15,12 @@ export default defineNuxtPlugin((nuxt) => {
const vueQueryState = useState<DehydratedState | null>("vue-query"); const vueQueryState = useState<DehydratedState | null>("vue-query");
const queryClient = new QueryClient({ const queryClient = new QueryClient({
defaultOptions: { queries: { staleTime: 5000 } } defaultOptions: {
queries: {
staleTime: 5000,
experimental_prefetchInRender: true,
},
},
}); });
const options: VueQueryPluginOptions = { queryClient }; const options: VueQueryPluginOptions = { queryClient };
@@ -33,7 +38,7 @@ export default defineNuxtPlugin((nuxt) => {
return { return {
provide: { provide: {
queryClient queryClient,
} },
}; };
}); });
Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 984 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 KiB