@scallop-io/sui-scallop-sdk 1.4.5 → 1.4.6
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/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopCache.d.ts +0 -1
- package/package.json +1 -1
- package/src/constants/queryKeys.ts +1 -1
- package/src/models/scallopCache.ts +8 -8
package/dist/index.mjs
CHANGED
|
@@ -655,7 +655,7 @@ var queryKeys = {
|
|
|
655
655
|
{
|
|
656
656
|
walletAddress,
|
|
657
657
|
options,
|
|
658
|
-
objectIds: JSON.stringify(objectIds ??
|
|
658
|
+
objectIds: JSON.stringify(objectIds ?? void 0)
|
|
659
659
|
}
|
|
660
660
|
],
|
|
661
661
|
getOwnedObjects: (input) => [
|
|
@@ -1910,14 +1910,14 @@ var ScallopCache = class {
|
|
|
1910
1910
|
* - `all`: All queries that match the refetch predicate will be refetched in the background.
|
|
1911
1911
|
* - `none`: No queries will be refetched. Queries that match the refetch predicate will only be marked as invalid.
|
|
1912
1912
|
*/
|
|
1913
|
-
async invalidateAllCache() {
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
}
|
|
1913
|
+
// public async invalidateAllCache() {
|
|
1914
|
+
// return Object.values(queryKeys.rpc).map((t) =>
|
|
1915
|
+
// this.queryClient.invalidateQueries({
|
|
1916
|
+
// queryKey: t(),
|
|
1917
|
+
// type: 'all',
|
|
1918
|
+
// })
|
|
1919
|
+
// );
|
|
1920
|
+
// }
|
|
1921
1921
|
retryFn(errCount, e) {
|
|
1922
1922
|
if (errCount === 5)
|
|
1923
1923
|
return false;
|