@tanstack/solid-query 5.26.3 → 5.27.2
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",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.2",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"solid-js": "^1.8.14",
|
|
51
|
-
"@tanstack/query-core": "5.
|
|
51
|
+
"@tanstack/query-core": "5.27.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"tsup-preset-solid": "^2.2.0",
|
|
@@ -1890,22 +1890,17 @@ describe('createQuery', () => {
|
|
|
1890
1890
|
rendered.getByText('Second Status: success')
|
|
1891
1891
|
})
|
|
1892
1892
|
|
|
1893
|
-
it('should
|
|
1893
|
+
it('should update query options', async () => {
|
|
1894
1894
|
const key = queryKey()
|
|
1895
1895
|
|
|
1896
|
-
const
|
|
1896
|
+
const queryFn = async () => {
|
|
1897
1897
|
await sleep(10)
|
|
1898
1898
|
return 'data1'
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
|
-
const queryFn2 = async () => {
|
|
1902
|
-
await sleep(10)
|
|
1903
|
-
return 'data2'
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
1901
|
function Page() {
|
|
1907
|
-
createQuery(() => ({ queryKey: key, queryFn:
|
|
1908
|
-
createQuery(() => ({ queryKey: key, queryFn:
|
|
1902
|
+
createQuery(() => ({ queryKey: key, queryFn, retryDelay: 10 }))
|
|
1903
|
+
createQuery(() => ({ queryKey: key, queryFn, retryDelay: 20 }))
|
|
1909
1904
|
return null
|
|
1910
1905
|
}
|
|
1911
1906
|
|
|
@@ -1915,7 +1910,7 @@ describe('createQuery', () => {
|
|
|
1915
1910
|
</QueryClientProvider>
|
|
1916
1911
|
))
|
|
1917
1912
|
|
|
1918
|
-
expect(queryCache.find({ queryKey: key })!.options.
|
|
1913
|
+
expect(queryCache.find({ queryKey: key })!.options.retryDelay).toBe(20)
|
|
1919
1914
|
})
|
|
1920
1915
|
|
|
1921
1916
|
it('should batch re-renders', async () => {
|