@tanstack/svelte-query 5.71.0 → 5.71.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useHydrate } from './useHydrate.js'
|
|
3
|
+
import type {
|
|
4
|
+
DehydratedState,
|
|
5
|
+
HydrateOptions,
|
|
6
|
+
QueryClient,
|
|
7
|
+
} from '@tanstack/query-core'
|
|
8
|
+
|
|
9
|
+
export let state: DehydratedState
|
|
10
|
+
export let options: HydrateOptions | undefined = undefined
|
|
11
|
+
export let queryClient: QueryClient | undefined = undefined
|
|
12
|
+
|
|
13
|
+
useHydrate(state, options, queryClient)
|
|
6
14
|
</script>
|
|
7
15
|
|
|
8
16
|
<slot />
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
client
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onDestroy, onMount } from 'svelte'
|
|
3
|
+
import { QueryClient } from '@tanstack/query-core'
|
|
4
|
+
import { setQueryClientContext } from './context.js'
|
|
5
|
+
|
|
6
|
+
export let client = new QueryClient()
|
|
7
|
+
|
|
8
|
+
onMount(() => {
|
|
9
|
+
client.mount()
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
setQueryClientContext(client)
|
|
13
|
+
|
|
14
|
+
onDestroy(() => {
|
|
15
|
+
client.unmount()
|
|
16
|
+
})
|
|
12
17
|
</script>
|
|
13
18
|
|
|
14
19
|
<slot />
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GACjB,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,CAEpB;AAED,wBAAgB,IAAI,IAAI,IAAI,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-query",
|
|
3
|
-
"version": "5.71.
|
|
3
|
+
"version": "5.71.3",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte",
|
|
5
5
|
"author": "Lachlan Collins",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"!src/__tests__"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tanstack/query-core": "5.71.
|
|
36
|
+
"@tanstack/query-core": "5.71.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@sveltejs/package": "^2.3.7",
|
|
40
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
40
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
41
41
|
"@testing-library/svelte": "^5.2.6",
|
|
42
42
|
"eslint-plugin-svelte": "^2.46.0",
|
|
43
|
-
"svelte": "^
|
|
43
|
+
"svelte": "^5.0.0",
|
|
44
44
|
"svelte-check": "^4.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GACjB,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,CAEpB;AAED,wBAAgB,IAAI,IAAI,IAAI,CAAG"}
|