@tanstack/solid-query-persist-client 5.29.3 → 5.30.1
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-query-persist-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.1",
|
|
4
4
|
"description": "Solid.js bindings to work with persisters in TanStack/solid-query",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"solid-js": "^1.6.0",
|
|
56
|
-
"@tanstack/solid-query": "5.
|
|
56
|
+
"@tanstack/solid-query": "5.30.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"clean": "rimraf ./build && rimraf ./coverage",
|
|
@@ -557,7 +557,7 @@ describe('PersistQueryClientProvider', () => {
|
|
|
557
557
|
expect(queryFn2).toHaveBeenCalledTimes(1)
|
|
558
558
|
expect(onSuccess).toHaveBeenCalledTimes(1)
|
|
559
559
|
|
|
560
|
-
expect(states).toHaveLength(
|
|
560
|
+
expect(states).toHaveLength(4)
|
|
561
561
|
|
|
562
562
|
expect(states[0]).toMatchObject({
|
|
563
563
|
status: 'pending',
|
|
@@ -566,12 +566,18 @@ describe('PersistQueryClientProvider', () => {
|
|
|
566
566
|
})
|
|
567
567
|
|
|
568
568
|
expect(states[1]).toMatchObject({
|
|
569
|
+
status: 'pending',
|
|
570
|
+
fetchStatus: 'idle',
|
|
571
|
+
data: undefined,
|
|
572
|
+
})
|
|
573
|
+
|
|
574
|
+
expect(states[2]).toMatchObject({
|
|
569
575
|
status: 'success',
|
|
570
576
|
fetchStatus: 'fetching',
|
|
571
577
|
data: 'hydrated',
|
|
572
578
|
})
|
|
573
579
|
|
|
574
|
-
expect(states[
|
|
580
|
+
expect(states[3]).toMatchObject({
|
|
575
581
|
status: 'success',
|
|
576
582
|
fetchStatus: 'idle',
|
|
577
583
|
data: 'queryFn2',
|