@tanstack/react-query-persist-client 5.90.25 → 5.94.4
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 +4 -4
- package/build/legacy/PersistQueryClientProvider.cjs +0 -79
- package/build/legacy/PersistQueryClientProvider.cjs.map +0 -1
- package/build/legacy/PersistQueryClientProvider.d.cts +0 -2
- package/build/legacy/PersistQueryClientProvider.d.ts +0 -2
- package/build/legacy/PersistQueryClientProvider.js +0 -48
- package/build/legacy/PersistQueryClientProvider.js.map +0 -1
- package/build/legacy/_tsup-dts-rollup.d.cts +0 -102
- package/build/legacy/_tsup-dts-rollup.d.ts +0 -102
- package/build/legacy/index.cjs +0 -27
- package/build/legacy/index.cjs.map +0 -1
- package/build/legacy/index.d.cts +0 -21
- package/build/legacy/index.d.ts +0 -21
- package/build/legacy/index.js +0 -4
- package/build/legacy/index.js.map +0 -1
- package/build/modern/PersistQueryClientProvider.cjs +0 -73
- package/build/modern/PersistQueryClientProvider.cjs.map +0 -1
- package/build/modern/PersistQueryClientProvider.d.cts +0 -2
- package/build/modern/PersistQueryClientProvider.d.ts +0 -2
- package/build/modern/PersistQueryClientProvider.js +0 -42
- package/build/modern/PersistQueryClientProvider.js.map +0 -1
- package/build/modern/_tsup-dts-rollup.d.cts +0 -102
- package/build/modern/_tsup-dts-rollup.d.ts +0 -102
- package/build/modern/index.cjs +0 -27
- package/build/modern/index.cjs.map +0 -1
- package/build/modern/index.d.cts +0 -21
- package/build/modern/index.d.ts +0 -21
- package/build/modern/index.js +0 -4
- package/build/modern/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-persist-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.94.4",
|
|
4
4
|
"description": "React bindings to work with persisters in TanStack/react-query",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"!src/__tests__"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tanstack/query-persist-client-core": "5.
|
|
43
|
+
"@tanstack/query-persist-client-core": "5.94.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/react": "^16.1.0",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"npm-run-all2": "^5.0.0",
|
|
50
50
|
"react": "^19.2.1",
|
|
51
51
|
"@tanstack/query-test-utils": "0.0.0",
|
|
52
|
-
"@tanstack/react-query": "5.
|
|
52
|
+
"@tanstack/react-query": "5.94.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^18 || ^19",
|
|
56
|
-
"@tanstack/react-query": "^5.
|
|
56
|
+
"@tanstack/react-query": "^5.94.4"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"clean": "premove ./build ./coverage ./dist-ts",
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/PersistQueryClientProvider.tsx
|
|
32
|
-
var PersistQueryClientProvider_exports = {};
|
|
33
|
-
__export(PersistQueryClientProvider_exports, {
|
|
34
|
-
PersistQueryClientProvider: () => PersistQueryClientProvider
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(PersistQueryClientProvider_exports);
|
|
37
|
-
var React = __toESM(require("react"), 1);
|
|
38
|
-
var import_query_persist_client_core = require("@tanstack/query-persist-client-core");
|
|
39
|
-
var import_react_query = require("@tanstack/react-query");
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
var PersistQueryClientProvider = ({
|
|
42
|
-
children,
|
|
43
|
-
persistOptions,
|
|
44
|
-
onSuccess,
|
|
45
|
-
onError,
|
|
46
|
-
...props
|
|
47
|
-
}) => {
|
|
48
|
-
const [isRestoring, setIsRestoring] = React.useState(true);
|
|
49
|
-
const refs = React.useRef({ persistOptions, onSuccess, onError });
|
|
50
|
-
const didRestore = React.useRef(false);
|
|
51
|
-
React.useEffect(() => {
|
|
52
|
-
refs.current = { persistOptions, onSuccess, onError };
|
|
53
|
-
});
|
|
54
|
-
React.useEffect(() => {
|
|
55
|
-
const options = {
|
|
56
|
-
...refs.current.persistOptions,
|
|
57
|
-
queryClient: props.client
|
|
58
|
-
};
|
|
59
|
-
if (!didRestore.current) {
|
|
60
|
-
didRestore.current = true;
|
|
61
|
-
(0, import_query_persist_client_core.persistQueryClientRestore)(options).then(() => {
|
|
62
|
-
var _a, _b;
|
|
63
|
-
return (_b = (_a = refs.current).onSuccess) == null ? void 0 : _b.call(_a);
|
|
64
|
-
}).catch(() => {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
return (_b = (_a = refs.current).onError) == null ? void 0 : _b.call(_a);
|
|
67
|
-
}).finally(() => {
|
|
68
|
-
setIsRestoring(false);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
return isRestoring ? void 0 : (0, import_query_persist_client_core.persistQueryClientSubscribe)(options);
|
|
72
|
-
}, [props.client, isRestoring]);
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query.QueryClientProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query.IsRestoringProvider, { value: isRestoring, children }) });
|
|
74
|
-
};
|
|
75
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
-
0 && (module.exports = {
|
|
77
|
-
PersistQueryClientProvider
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=PersistQueryClientProvider.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/PersistQueryClientProvider.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport {\n persistQueryClientRestore,\n persistQueryClientSubscribe,\n} from '@tanstack/query-persist-client-core'\nimport { IsRestoringProvider, QueryClientProvider } from '@tanstack/react-query'\nimport type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'\nimport type { OmitKeyof, QueryClientProviderProps } from '@tanstack/react-query'\n\nexport type PersistQueryClientProviderProps = QueryClientProviderProps & {\n persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>\n onSuccess?: () => Promise<unknown> | unknown\n onError?: () => Promise<unknown> | unknown\n}\n\nexport const PersistQueryClientProvider = ({\n children,\n persistOptions,\n onSuccess,\n onError,\n ...props\n}: PersistQueryClientProviderProps): React.JSX.Element => {\n const [isRestoring, setIsRestoring] = React.useState(true)\n const refs = React.useRef({ persistOptions, onSuccess, onError })\n const didRestore = React.useRef(false)\n\n React.useEffect(() => {\n refs.current = { persistOptions, onSuccess, onError }\n })\n\n React.useEffect(() => {\n const options = {\n ...refs.current.persistOptions,\n queryClient: props.client,\n }\n if (!didRestore.current) {\n didRestore.current = true\n persistQueryClientRestore(options)\n .then(() => refs.current.onSuccess?.())\n .catch(() => refs.current.onError?.())\n .finally(() => {\n setIsRestoring(false)\n })\n }\n return isRestoring ? undefined : persistQueryClientSubscribe(options)\n }, [props.client, isRestoring])\n\n return (\n <QueryClientProvider {...props}>\n <IsRestoringProvider value={isRestoring}>{children}</IsRestoringProvider>\n </QueryClientProvider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAEvB,uCAGO;AACP,yBAAyD;AA4CnD;AAlCC,IAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA0D;AACxD,QAAM,CAAC,aAAa,cAAc,IAAU,eAAS,IAAI;AACzD,QAAM,OAAa,aAAO,EAAE,gBAAgB,WAAW,QAAQ,CAAC;AAChE,QAAM,aAAmB,aAAO,KAAK;AAErC,EAAM,gBAAU,MAAM;AACpB,SAAK,UAAU,EAAE,gBAAgB,WAAW,QAAQ;AAAA,EACtD,CAAC;AAED,EAAM,gBAAU,MAAM;AACpB,UAAM,UAAU;AAAA,MACd,GAAG,KAAK,QAAQ;AAAA,MAChB,aAAa,MAAM;AAAA,IACrB;AACA,QAAI,CAAC,WAAW,SAAS;AACvB,iBAAW,UAAU;AACrB,sEAA0B,OAAO,EAC9B,KAAK,MAAG;AAxCjB;AAwCoB,gCAAK,SAAQ,cAAb;AAAA,OAA0B,EACrC,MAAM,MAAG;AAzClB;AAyCqB,gCAAK,SAAQ,YAAb;AAAA,OAAwB,EACpC,QAAQ,MAAM;AACb,uBAAe,KAAK;AAAA,MACtB,CAAC;AAAA,IACL;AACA,WAAO,cAAc,aAAY,8DAA4B,OAAO;AAAA,EACtE,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;AAE9B,SACE,4CAAC,0CAAqB,GAAG,OACvB,sDAAC,0CAAoB,OAAO,aAAc,UAAS,GACrD;AAEJ;","names":[]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/PersistQueryClientProvider.tsx
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import {
|
|
6
|
-
persistQueryClientRestore,
|
|
7
|
-
persistQueryClientSubscribe
|
|
8
|
-
} from "@tanstack/query-persist-client-core";
|
|
9
|
-
import { IsRestoringProvider, QueryClientProvider } from "@tanstack/react-query";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var PersistQueryClientProvider = ({
|
|
12
|
-
children,
|
|
13
|
-
persistOptions,
|
|
14
|
-
onSuccess,
|
|
15
|
-
onError,
|
|
16
|
-
...props
|
|
17
|
-
}) => {
|
|
18
|
-
const [isRestoring, setIsRestoring] = React.useState(true);
|
|
19
|
-
const refs = React.useRef({ persistOptions, onSuccess, onError });
|
|
20
|
-
const didRestore = React.useRef(false);
|
|
21
|
-
React.useEffect(() => {
|
|
22
|
-
refs.current = { persistOptions, onSuccess, onError };
|
|
23
|
-
});
|
|
24
|
-
React.useEffect(() => {
|
|
25
|
-
const options = {
|
|
26
|
-
...refs.current.persistOptions,
|
|
27
|
-
queryClient: props.client
|
|
28
|
-
};
|
|
29
|
-
if (!didRestore.current) {
|
|
30
|
-
didRestore.current = true;
|
|
31
|
-
persistQueryClientRestore(options).then(() => {
|
|
32
|
-
var _a, _b;
|
|
33
|
-
return (_b = (_a = refs.current).onSuccess) == null ? void 0 : _b.call(_a);
|
|
34
|
-
}).catch(() => {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
return (_b = (_a = refs.current).onError) == null ? void 0 : _b.call(_a);
|
|
37
|
-
}).finally(() => {
|
|
38
|
-
setIsRestoring(false);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return isRestoring ? void 0 : persistQueryClientSubscribe(options);
|
|
42
|
-
}, [props.client, isRestoring]);
|
|
43
|
-
return /* @__PURE__ */ jsx(QueryClientProvider, { ...props, children: /* @__PURE__ */ jsx(IsRestoringProvider, { value: isRestoring, children }) });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
PersistQueryClientProvider
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=PersistQueryClientProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/PersistQueryClientProvider.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport {\n persistQueryClientRestore,\n persistQueryClientSubscribe,\n} from '@tanstack/query-persist-client-core'\nimport { IsRestoringProvider, QueryClientProvider } from '@tanstack/react-query'\nimport type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'\nimport type { OmitKeyof, QueryClientProviderProps } from '@tanstack/react-query'\n\nexport type PersistQueryClientProviderProps = QueryClientProviderProps & {\n persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>\n onSuccess?: () => Promise<unknown> | unknown\n onError?: () => Promise<unknown> | unknown\n}\n\nexport const PersistQueryClientProvider = ({\n children,\n persistOptions,\n onSuccess,\n onError,\n ...props\n}: PersistQueryClientProviderProps): React.JSX.Element => {\n const [isRestoring, setIsRestoring] = React.useState(true)\n const refs = React.useRef({ persistOptions, onSuccess, onError })\n const didRestore = React.useRef(false)\n\n React.useEffect(() => {\n refs.current = { persistOptions, onSuccess, onError }\n })\n\n React.useEffect(() => {\n const options = {\n ...refs.current.persistOptions,\n queryClient: props.client,\n }\n if (!didRestore.current) {\n didRestore.current = true\n persistQueryClientRestore(options)\n .then(() => refs.current.onSuccess?.())\n .catch(() => refs.current.onError?.())\n .finally(() => {\n setIsRestoring(false)\n })\n }\n return isRestoring ? undefined : persistQueryClientSubscribe(options)\n }, [props.client, isRestoring])\n\n return (\n <QueryClientProvider {...props}>\n <IsRestoringProvider value={isRestoring}>{children}</IsRestoringProvider>\n </QueryClientProvider>\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AAEvB;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,qBAAqB,2BAA2B;AA4CnD;AAlCC,IAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA0D;AACxD,QAAM,CAAC,aAAa,cAAc,IAAU,eAAS,IAAI;AACzD,QAAM,OAAa,aAAO,EAAE,gBAAgB,WAAW,QAAQ,CAAC;AAChE,QAAM,aAAmB,aAAO,KAAK;AAErC,EAAM,gBAAU,MAAM;AACpB,SAAK,UAAU,EAAE,gBAAgB,WAAW,QAAQ;AAAA,EACtD,CAAC;AAED,EAAM,gBAAU,MAAM;AACpB,UAAM,UAAU;AAAA,MACd,GAAG,KAAK,QAAQ;AAAA,MAChB,aAAa,MAAM;AAAA,IACrB;AACA,QAAI,CAAC,WAAW,SAAS;AACvB,iBAAW,UAAU;AACrB,gCAA0B,OAAO,EAC9B,KAAK,MAAG;AAxCjB;AAwCoB,gCAAK,SAAQ,cAAb;AAAA,OAA0B,EACrC,MAAM,MAAG;AAzClB;AAyCqB,gCAAK,SAAQ,YAAb;AAAA,OAAwB,EACpC,QAAQ,MAAM;AACb,uBAAe,KAAK;AAAA,MACtB,CAAC;AAAA,IACL;AACA,WAAO,cAAc,SAAY,4BAA4B,OAAO;AAAA,EACtE,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;AAE9B,SACE,oBAAC,uBAAqB,GAAG,OACvB,8BAAC,uBAAoB,OAAO,aAAc,UAAS,GACrD;AAEJ;","names":[]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AsyncStorage } from '@tanstack/query-persist-client-core';
|
|
2
|
-
import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
|
|
3
|
-
import { MaybePromise } from '@tanstack/query-persist-client-core';
|
|
4
|
-
import type { OmitKeyof } from '@tanstack/react-query';
|
|
5
|
-
import { Options } from 'tsup';
|
|
6
|
-
import { PersistedClient } from '@tanstack/query-persist-client-core';
|
|
7
|
-
import { PersistedQuery } from '@tanstack/query-persist-client-core';
|
|
8
|
-
import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
|
|
9
|
-
import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
|
|
10
|
-
import { Persister } from '@tanstack/query-persist-client-core';
|
|
11
|
-
import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
|
|
12
|
-
import { persistQueryClient } from '@tanstack/query-persist-client-core';
|
|
13
|
-
import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
|
|
14
|
-
import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
|
|
15
|
-
import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
|
|
16
|
-
import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
|
|
17
|
-
import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
|
|
18
|
-
import { PersistRetryer } from '@tanstack/query-persist-client-core';
|
|
19
|
-
import { Promisable } from '@tanstack/query-persist-client-core';
|
|
20
|
-
import type { QueryClientProviderProps } from '@tanstack/react-query';
|
|
21
|
-
import * as React_2 from 'react';
|
|
22
|
-
import { removeOldestQuery } from '@tanstack/query-persist-client-core';
|
|
23
|
-
import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
|
|
24
|
-
import { UserConfig } from 'vite';
|
|
25
|
-
|
|
26
|
-
export { AsyncStorage }
|
|
27
|
-
|
|
28
|
-
export declare const default_alias: any[];
|
|
29
|
-
|
|
30
|
-
export declare const default_alias_1: any[];
|
|
31
|
-
|
|
32
|
-
export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
33
|
-
|
|
34
|
-
export declare const default_alias_3: UserConfig;
|
|
35
|
-
|
|
36
|
-
export { experimental_createQueryPersister }
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @param {Object} opts - Options for building configurations.
|
|
40
|
-
* @param {string[]} opts.entry - The entry array.
|
|
41
|
-
* @returns {import('tsup').Options}
|
|
42
|
-
*/
|
|
43
|
-
export declare function legacyConfig(opts: {
|
|
44
|
-
entry: string[];
|
|
45
|
-
}): Options;
|
|
46
|
-
|
|
47
|
-
export { MaybePromise }
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @param {Object} opts - Options for building configurations.
|
|
51
|
-
* @param {string[]} opts.entry - The entry array.
|
|
52
|
-
* @returns {import('tsup').Options}
|
|
53
|
-
*/
|
|
54
|
-
export declare function modernConfig(opts: {
|
|
55
|
-
entry: string[];
|
|
56
|
-
}): Options;
|
|
57
|
-
|
|
58
|
-
export { PersistedClient }
|
|
59
|
-
|
|
60
|
-
export { PersistedQuery }
|
|
61
|
-
|
|
62
|
-
export { PersistedQueryClientRestoreOptions }
|
|
63
|
-
|
|
64
|
-
export { PersistedQueryClientSaveOptions }
|
|
65
|
-
|
|
66
|
-
export { Persister }
|
|
67
|
-
|
|
68
|
-
export { PERSISTER_KEY_PREFIX }
|
|
69
|
-
|
|
70
|
-
export { persistQueryClient }
|
|
71
|
-
|
|
72
|
-
export { PersistQueryClientOptions }
|
|
73
|
-
|
|
74
|
-
declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => React_2.JSX.Element;
|
|
75
|
-
export { PersistQueryClientProvider }
|
|
76
|
-
export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
|
|
77
|
-
|
|
78
|
-
declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
79
|
-
persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
|
|
80
|
-
onSuccess?: () => Promise<unknown> | unknown;
|
|
81
|
-
onError?: () => Promise<unknown> | unknown;
|
|
82
|
-
};
|
|
83
|
-
export { PersistQueryClientProviderProps }
|
|
84
|
-
export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
|
|
85
|
-
|
|
86
|
-
export { persistQueryClientRestore }
|
|
87
|
-
|
|
88
|
-
export { PersistQueryClientRootOptions }
|
|
89
|
-
|
|
90
|
-
export { persistQueryClientSave }
|
|
91
|
-
|
|
92
|
-
export { persistQueryClientSubscribe }
|
|
93
|
-
|
|
94
|
-
export { PersistRetryer }
|
|
95
|
-
|
|
96
|
-
export { Promisable }
|
|
97
|
-
|
|
98
|
-
export { removeOldestQuery }
|
|
99
|
-
|
|
100
|
-
export { StoragePersisterOptions }
|
|
101
|
-
|
|
102
|
-
export { }
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AsyncStorage } from '@tanstack/query-persist-client-core';
|
|
2
|
-
import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
|
|
3
|
-
import { MaybePromise } from '@tanstack/query-persist-client-core';
|
|
4
|
-
import type { OmitKeyof } from '@tanstack/react-query';
|
|
5
|
-
import { Options } from 'tsup';
|
|
6
|
-
import { PersistedClient } from '@tanstack/query-persist-client-core';
|
|
7
|
-
import { PersistedQuery } from '@tanstack/query-persist-client-core';
|
|
8
|
-
import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
|
|
9
|
-
import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
|
|
10
|
-
import { Persister } from '@tanstack/query-persist-client-core';
|
|
11
|
-
import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
|
|
12
|
-
import { persistQueryClient } from '@tanstack/query-persist-client-core';
|
|
13
|
-
import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
|
|
14
|
-
import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
|
|
15
|
-
import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
|
|
16
|
-
import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
|
|
17
|
-
import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
|
|
18
|
-
import { PersistRetryer } from '@tanstack/query-persist-client-core';
|
|
19
|
-
import { Promisable } from '@tanstack/query-persist-client-core';
|
|
20
|
-
import type { QueryClientProviderProps } from '@tanstack/react-query';
|
|
21
|
-
import * as React_2 from 'react';
|
|
22
|
-
import { removeOldestQuery } from '@tanstack/query-persist-client-core';
|
|
23
|
-
import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
|
|
24
|
-
import { UserConfig } from 'vite';
|
|
25
|
-
|
|
26
|
-
export { AsyncStorage }
|
|
27
|
-
|
|
28
|
-
export declare const default_alias: any[];
|
|
29
|
-
|
|
30
|
-
export declare const default_alias_1: any[];
|
|
31
|
-
|
|
32
|
-
export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
33
|
-
|
|
34
|
-
export declare const default_alias_3: UserConfig;
|
|
35
|
-
|
|
36
|
-
export { experimental_createQueryPersister }
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @param {Object} opts - Options for building configurations.
|
|
40
|
-
* @param {string[]} opts.entry - The entry array.
|
|
41
|
-
* @returns {import('tsup').Options}
|
|
42
|
-
*/
|
|
43
|
-
export declare function legacyConfig(opts: {
|
|
44
|
-
entry: string[];
|
|
45
|
-
}): Options;
|
|
46
|
-
|
|
47
|
-
export { MaybePromise }
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @param {Object} opts - Options for building configurations.
|
|
51
|
-
* @param {string[]} opts.entry - The entry array.
|
|
52
|
-
* @returns {import('tsup').Options}
|
|
53
|
-
*/
|
|
54
|
-
export declare function modernConfig(opts: {
|
|
55
|
-
entry: string[];
|
|
56
|
-
}): Options;
|
|
57
|
-
|
|
58
|
-
export { PersistedClient }
|
|
59
|
-
|
|
60
|
-
export { PersistedQuery }
|
|
61
|
-
|
|
62
|
-
export { PersistedQueryClientRestoreOptions }
|
|
63
|
-
|
|
64
|
-
export { PersistedQueryClientSaveOptions }
|
|
65
|
-
|
|
66
|
-
export { Persister }
|
|
67
|
-
|
|
68
|
-
export { PERSISTER_KEY_PREFIX }
|
|
69
|
-
|
|
70
|
-
export { persistQueryClient }
|
|
71
|
-
|
|
72
|
-
export { PersistQueryClientOptions }
|
|
73
|
-
|
|
74
|
-
declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => React_2.JSX.Element;
|
|
75
|
-
export { PersistQueryClientProvider }
|
|
76
|
-
export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
|
|
77
|
-
|
|
78
|
-
declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
79
|
-
persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
|
|
80
|
-
onSuccess?: () => Promise<unknown> | unknown;
|
|
81
|
-
onError?: () => Promise<unknown> | unknown;
|
|
82
|
-
};
|
|
83
|
-
export { PersistQueryClientProviderProps }
|
|
84
|
-
export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
|
|
85
|
-
|
|
86
|
-
export { persistQueryClientRestore }
|
|
87
|
-
|
|
88
|
-
export { PersistQueryClientRootOptions }
|
|
89
|
-
|
|
90
|
-
export { persistQueryClientSave }
|
|
91
|
-
|
|
92
|
-
export { persistQueryClientSubscribe }
|
|
93
|
-
|
|
94
|
-
export { PersistRetryer }
|
|
95
|
-
|
|
96
|
-
export { Promisable }
|
|
97
|
-
|
|
98
|
-
export { removeOldestQuery }
|
|
99
|
-
|
|
100
|
-
export { StoragePersisterOptions }
|
|
101
|
-
|
|
102
|
-
export { }
|
package/build/legacy/index.cjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
|
|
17
|
-
// src/index.ts
|
|
18
|
-
var index_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("@tanstack/query-persist-client-core"), module.exports);
|
|
21
|
-
__reExport(index_exports, require("./PersistQueryClientProvider.cjs"), module.exports);
|
|
22
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
-
0 && (module.exports = {
|
|
24
|
-
...require("@tanstack/query-persist-client-core"),
|
|
25
|
-
...require("./PersistQueryClientProvider.cjs")
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Re-export core\nexport * from '@tanstack/query-persist-client-core'\n\nexport * from './PersistQueryClientProvider'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,0BAAc,gDADd;AAGA,0BAAc,6CAHd;","names":[]}
|
package/build/legacy/index.d.cts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { persistQueryClientRestore } from './_tsup-dts-rollup.cjs';
|
|
2
|
-
export { persistQueryClientSave } from './_tsup-dts-rollup.cjs';
|
|
3
|
-
export { persistQueryClientSubscribe } from './_tsup-dts-rollup.cjs';
|
|
4
|
-
export { persistQueryClient } from './_tsup-dts-rollup.cjs';
|
|
5
|
-
export { Promisable } from './_tsup-dts-rollup.cjs';
|
|
6
|
-
export { Persister } from './_tsup-dts-rollup.cjs';
|
|
7
|
-
export { PersistedClient } from './_tsup-dts-rollup.cjs';
|
|
8
|
-
export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.cjs';
|
|
9
|
-
export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.cjs';
|
|
10
|
-
export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.cjs';
|
|
11
|
-
export { PersistQueryClientOptions } from './_tsup-dts-rollup.cjs';
|
|
12
|
-
export { PersistRetryer } from './_tsup-dts-rollup.cjs';
|
|
13
|
-
export { removeOldestQuery } from './_tsup-dts-rollup.cjs';
|
|
14
|
-
export { experimental_createQueryPersister } from './_tsup-dts-rollup.cjs';
|
|
15
|
-
export { PersistedQuery } from './_tsup-dts-rollup.cjs';
|
|
16
|
-
export { MaybePromise } from './_tsup-dts-rollup.cjs';
|
|
17
|
-
export { AsyncStorage } from './_tsup-dts-rollup.cjs';
|
|
18
|
-
export { StoragePersisterOptions } from './_tsup-dts-rollup.cjs';
|
|
19
|
-
export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.cjs';
|
|
20
|
-
export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.cjs';
|
|
21
|
-
export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.cjs';
|
package/build/legacy/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { persistQueryClientRestore } from './_tsup-dts-rollup.js';
|
|
2
|
-
export { persistQueryClientSave } from './_tsup-dts-rollup.js';
|
|
3
|
-
export { persistQueryClientSubscribe } from './_tsup-dts-rollup.js';
|
|
4
|
-
export { persistQueryClient } from './_tsup-dts-rollup.js';
|
|
5
|
-
export { Promisable } from './_tsup-dts-rollup.js';
|
|
6
|
-
export { Persister } from './_tsup-dts-rollup.js';
|
|
7
|
-
export { PersistedClient } from './_tsup-dts-rollup.js';
|
|
8
|
-
export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.js';
|
|
9
|
-
export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.js';
|
|
10
|
-
export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.js';
|
|
11
|
-
export { PersistQueryClientOptions } from './_tsup-dts-rollup.js';
|
|
12
|
-
export { PersistRetryer } from './_tsup-dts-rollup.js';
|
|
13
|
-
export { removeOldestQuery } from './_tsup-dts-rollup.js';
|
|
14
|
-
export { experimental_createQueryPersister } from './_tsup-dts-rollup.js';
|
|
15
|
-
export { PersistedQuery } from './_tsup-dts-rollup.js';
|
|
16
|
-
export { MaybePromise } from './_tsup-dts-rollup.js';
|
|
17
|
-
export { AsyncStorage } from './_tsup-dts-rollup.js';
|
|
18
|
-
export { StoragePersisterOptions } from './_tsup-dts-rollup.js';
|
|
19
|
-
export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.js';
|
|
20
|
-
export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.js';
|
|
21
|
-
export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.js';
|
package/build/legacy/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Re-export core\nexport * from '@tanstack/query-persist-client-core'\n\nexport * from './PersistQueryClientProvider'\n"],"mappings":";AACA,cAAc;AAEd,cAAc;","names":[]}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/PersistQueryClientProvider.tsx
|
|
32
|
-
var PersistQueryClientProvider_exports = {};
|
|
33
|
-
__export(PersistQueryClientProvider_exports, {
|
|
34
|
-
PersistQueryClientProvider: () => PersistQueryClientProvider
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(PersistQueryClientProvider_exports);
|
|
37
|
-
var React = __toESM(require("react"), 1);
|
|
38
|
-
var import_query_persist_client_core = require("@tanstack/query-persist-client-core");
|
|
39
|
-
var import_react_query = require("@tanstack/react-query");
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
var PersistQueryClientProvider = ({
|
|
42
|
-
children,
|
|
43
|
-
persistOptions,
|
|
44
|
-
onSuccess,
|
|
45
|
-
onError,
|
|
46
|
-
...props
|
|
47
|
-
}) => {
|
|
48
|
-
const [isRestoring, setIsRestoring] = React.useState(true);
|
|
49
|
-
const refs = React.useRef({ persistOptions, onSuccess, onError });
|
|
50
|
-
const didRestore = React.useRef(false);
|
|
51
|
-
React.useEffect(() => {
|
|
52
|
-
refs.current = { persistOptions, onSuccess, onError };
|
|
53
|
-
});
|
|
54
|
-
React.useEffect(() => {
|
|
55
|
-
const options = {
|
|
56
|
-
...refs.current.persistOptions,
|
|
57
|
-
queryClient: props.client
|
|
58
|
-
};
|
|
59
|
-
if (!didRestore.current) {
|
|
60
|
-
didRestore.current = true;
|
|
61
|
-
(0, import_query_persist_client_core.persistQueryClientRestore)(options).then(() => refs.current.onSuccess?.()).catch(() => refs.current.onError?.()).finally(() => {
|
|
62
|
-
setIsRestoring(false);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return isRestoring ? void 0 : (0, import_query_persist_client_core.persistQueryClientSubscribe)(options);
|
|
66
|
-
}, [props.client, isRestoring]);
|
|
67
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query.QueryClientProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query.IsRestoringProvider, { value: isRestoring, children }) });
|
|
68
|
-
};
|
|
69
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
-
0 && (module.exports = {
|
|
71
|
-
PersistQueryClientProvider
|
|
72
|
-
});
|
|
73
|
-
//# sourceMappingURL=PersistQueryClientProvider.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/PersistQueryClientProvider.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport {\n persistQueryClientRestore,\n persistQueryClientSubscribe,\n} from '@tanstack/query-persist-client-core'\nimport { IsRestoringProvider, QueryClientProvider } from '@tanstack/react-query'\nimport type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'\nimport type { OmitKeyof, QueryClientProviderProps } from '@tanstack/react-query'\n\nexport type PersistQueryClientProviderProps = QueryClientProviderProps & {\n persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>\n onSuccess?: () => Promise<unknown> | unknown\n onError?: () => Promise<unknown> | unknown\n}\n\nexport const PersistQueryClientProvider = ({\n children,\n persistOptions,\n onSuccess,\n onError,\n ...props\n}: PersistQueryClientProviderProps): React.JSX.Element => {\n const [isRestoring, setIsRestoring] = React.useState(true)\n const refs = React.useRef({ persistOptions, onSuccess, onError })\n const didRestore = React.useRef(false)\n\n React.useEffect(() => {\n refs.current = { persistOptions, onSuccess, onError }\n })\n\n React.useEffect(() => {\n const options = {\n ...refs.current.persistOptions,\n queryClient: props.client,\n }\n if (!didRestore.current) {\n didRestore.current = true\n persistQueryClientRestore(options)\n .then(() => refs.current.onSuccess?.())\n .catch(() => refs.current.onError?.())\n .finally(() => {\n setIsRestoring(false)\n })\n }\n return isRestoring ? undefined : persistQueryClientSubscribe(options)\n }, [props.client, isRestoring])\n\n return (\n <QueryClientProvider {...props}>\n <IsRestoringProvider value={isRestoring}>{children}</IsRestoringProvider>\n </QueryClientProvider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAEvB,uCAGO;AACP,yBAAyD;AA4CnD;AAlCC,IAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA0D;AACxD,QAAM,CAAC,aAAa,cAAc,IAAU,eAAS,IAAI;AACzD,QAAM,OAAa,aAAO,EAAE,gBAAgB,WAAW,QAAQ,CAAC;AAChE,QAAM,aAAmB,aAAO,KAAK;AAErC,EAAM,gBAAU,MAAM;AACpB,SAAK,UAAU,EAAE,gBAAgB,WAAW,QAAQ;AAAA,EACtD,CAAC;AAED,EAAM,gBAAU,MAAM;AACpB,UAAM,UAAU;AAAA,MACd,GAAG,KAAK,QAAQ;AAAA,MAChB,aAAa,MAAM;AAAA,IACrB;AACA,QAAI,CAAC,WAAW,SAAS;AACvB,iBAAW,UAAU;AACrB,sEAA0B,OAAO,EAC9B,KAAK,MAAM,KAAK,QAAQ,YAAY,CAAC,EACrC,MAAM,MAAM,KAAK,QAAQ,UAAU,CAAC,EACpC,QAAQ,MAAM;AACb,uBAAe,KAAK;AAAA,MACtB,CAAC;AAAA,IACL;AACA,WAAO,cAAc,aAAY,8DAA4B,OAAO;AAAA,EACtE,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;AAE9B,SACE,4CAAC,0CAAqB,GAAG,OACvB,sDAAC,0CAAoB,OAAO,aAAc,UAAS,GACrD;AAEJ;","names":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/PersistQueryClientProvider.tsx
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import {
|
|
6
|
-
persistQueryClientRestore,
|
|
7
|
-
persistQueryClientSubscribe
|
|
8
|
-
} from "@tanstack/query-persist-client-core";
|
|
9
|
-
import { IsRestoringProvider, QueryClientProvider } from "@tanstack/react-query";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var PersistQueryClientProvider = ({
|
|
12
|
-
children,
|
|
13
|
-
persistOptions,
|
|
14
|
-
onSuccess,
|
|
15
|
-
onError,
|
|
16
|
-
...props
|
|
17
|
-
}) => {
|
|
18
|
-
const [isRestoring, setIsRestoring] = React.useState(true);
|
|
19
|
-
const refs = React.useRef({ persistOptions, onSuccess, onError });
|
|
20
|
-
const didRestore = React.useRef(false);
|
|
21
|
-
React.useEffect(() => {
|
|
22
|
-
refs.current = { persistOptions, onSuccess, onError };
|
|
23
|
-
});
|
|
24
|
-
React.useEffect(() => {
|
|
25
|
-
const options = {
|
|
26
|
-
...refs.current.persistOptions,
|
|
27
|
-
queryClient: props.client
|
|
28
|
-
};
|
|
29
|
-
if (!didRestore.current) {
|
|
30
|
-
didRestore.current = true;
|
|
31
|
-
persistQueryClientRestore(options).then(() => refs.current.onSuccess?.()).catch(() => refs.current.onError?.()).finally(() => {
|
|
32
|
-
setIsRestoring(false);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
return isRestoring ? void 0 : persistQueryClientSubscribe(options);
|
|
36
|
-
}, [props.client, isRestoring]);
|
|
37
|
-
return /* @__PURE__ */ jsx(QueryClientProvider, { ...props, children: /* @__PURE__ */ jsx(IsRestoringProvider, { value: isRestoring, children }) });
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
PersistQueryClientProvider
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=PersistQueryClientProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/PersistQueryClientProvider.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport {\n persistQueryClientRestore,\n persistQueryClientSubscribe,\n} from '@tanstack/query-persist-client-core'\nimport { IsRestoringProvider, QueryClientProvider } from '@tanstack/react-query'\nimport type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'\nimport type { OmitKeyof, QueryClientProviderProps } from '@tanstack/react-query'\n\nexport type PersistQueryClientProviderProps = QueryClientProviderProps & {\n persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>\n onSuccess?: () => Promise<unknown> | unknown\n onError?: () => Promise<unknown> | unknown\n}\n\nexport const PersistQueryClientProvider = ({\n children,\n persistOptions,\n onSuccess,\n onError,\n ...props\n}: PersistQueryClientProviderProps): React.JSX.Element => {\n const [isRestoring, setIsRestoring] = React.useState(true)\n const refs = React.useRef({ persistOptions, onSuccess, onError })\n const didRestore = React.useRef(false)\n\n React.useEffect(() => {\n refs.current = { persistOptions, onSuccess, onError }\n })\n\n React.useEffect(() => {\n const options = {\n ...refs.current.persistOptions,\n queryClient: props.client,\n }\n if (!didRestore.current) {\n didRestore.current = true\n persistQueryClientRestore(options)\n .then(() => refs.current.onSuccess?.())\n .catch(() => refs.current.onError?.())\n .finally(() => {\n setIsRestoring(false)\n })\n }\n return isRestoring ? undefined : persistQueryClientSubscribe(options)\n }, [props.client, isRestoring])\n\n return (\n <QueryClientProvider {...props}>\n <IsRestoringProvider value={isRestoring}>{children}</IsRestoringProvider>\n </QueryClientProvider>\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AAEvB;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,qBAAqB,2BAA2B;AA4CnD;AAlCC,IAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA0D;AACxD,QAAM,CAAC,aAAa,cAAc,IAAU,eAAS,IAAI;AACzD,QAAM,OAAa,aAAO,EAAE,gBAAgB,WAAW,QAAQ,CAAC;AAChE,QAAM,aAAmB,aAAO,KAAK;AAErC,EAAM,gBAAU,MAAM;AACpB,SAAK,UAAU,EAAE,gBAAgB,WAAW,QAAQ;AAAA,EACtD,CAAC;AAED,EAAM,gBAAU,MAAM;AACpB,UAAM,UAAU;AAAA,MACd,GAAG,KAAK,QAAQ;AAAA,MAChB,aAAa,MAAM;AAAA,IACrB;AACA,QAAI,CAAC,WAAW,SAAS;AACvB,iBAAW,UAAU;AACrB,gCAA0B,OAAO,EAC9B,KAAK,MAAM,KAAK,QAAQ,YAAY,CAAC,EACrC,MAAM,MAAM,KAAK,QAAQ,UAAU,CAAC,EACpC,QAAQ,MAAM;AACb,uBAAe,KAAK;AAAA,MACtB,CAAC;AAAA,IACL;AACA,WAAO,cAAc,SAAY,4BAA4B,OAAO;AAAA,EACtE,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;AAE9B,SACE,oBAAC,uBAAqB,GAAG,OACvB,8BAAC,uBAAoB,OAAO,aAAc,UAAS,GACrD;AAEJ;","names":[]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AsyncStorage } from '@tanstack/query-persist-client-core';
|
|
2
|
-
import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
|
|
3
|
-
import { MaybePromise } from '@tanstack/query-persist-client-core';
|
|
4
|
-
import type { OmitKeyof } from '@tanstack/react-query';
|
|
5
|
-
import { Options } from 'tsup';
|
|
6
|
-
import { PersistedClient } from '@tanstack/query-persist-client-core';
|
|
7
|
-
import { PersistedQuery } from '@tanstack/query-persist-client-core';
|
|
8
|
-
import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
|
|
9
|
-
import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
|
|
10
|
-
import { Persister } from '@tanstack/query-persist-client-core';
|
|
11
|
-
import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
|
|
12
|
-
import { persistQueryClient } from '@tanstack/query-persist-client-core';
|
|
13
|
-
import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
|
|
14
|
-
import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
|
|
15
|
-
import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
|
|
16
|
-
import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
|
|
17
|
-
import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
|
|
18
|
-
import { PersistRetryer } from '@tanstack/query-persist-client-core';
|
|
19
|
-
import { Promisable } from '@tanstack/query-persist-client-core';
|
|
20
|
-
import type { QueryClientProviderProps } from '@tanstack/react-query';
|
|
21
|
-
import * as React_2 from 'react';
|
|
22
|
-
import { removeOldestQuery } from '@tanstack/query-persist-client-core';
|
|
23
|
-
import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
|
|
24
|
-
import { UserConfig } from 'vite';
|
|
25
|
-
|
|
26
|
-
export { AsyncStorage }
|
|
27
|
-
|
|
28
|
-
export declare const default_alias: any[];
|
|
29
|
-
|
|
30
|
-
export declare const default_alias_1: any[];
|
|
31
|
-
|
|
32
|
-
export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
33
|
-
|
|
34
|
-
export declare const default_alias_3: UserConfig;
|
|
35
|
-
|
|
36
|
-
export { experimental_createQueryPersister }
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @param {Object} opts - Options for building configurations.
|
|
40
|
-
* @param {string[]} opts.entry - The entry array.
|
|
41
|
-
* @returns {import('tsup').Options}
|
|
42
|
-
*/
|
|
43
|
-
export declare function legacyConfig(opts: {
|
|
44
|
-
entry: string[];
|
|
45
|
-
}): Options;
|
|
46
|
-
|
|
47
|
-
export { MaybePromise }
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @param {Object} opts - Options for building configurations.
|
|
51
|
-
* @param {string[]} opts.entry - The entry array.
|
|
52
|
-
* @returns {import('tsup').Options}
|
|
53
|
-
*/
|
|
54
|
-
export declare function modernConfig(opts: {
|
|
55
|
-
entry: string[];
|
|
56
|
-
}): Options;
|
|
57
|
-
|
|
58
|
-
export { PersistedClient }
|
|
59
|
-
|
|
60
|
-
export { PersistedQuery }
|
|
61
|
-
|
|
62
|
-
export { PersistedQueryClientRestoreOptions }
|
|
63
|
-
|
|
64
|
-
export { PersistedQueryClientSaveOptions }
|
|
65
|
-
|
|
66
|
-
export { Persister }
|
|
67
|
-
|
|
68
|
-
export { PERSISTER_KEY_PREFIX }
|
|
69
|
-
|
|
70
|
-
export { persistQueryClient }
|
|
71
|
-
|
|
72
|
-
export { PersistQueryClientOptions }
|
|
73
|
-
|
|
74
|
-
declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => React_2.JSX.Element;
|
|
75
|
-
export { PersistQueryClientProvider }
|
|
76
|
-
export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
|
|
77
|
-
|
|
78
|
-
declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
79
|
-
persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
|
|
80
|
-
onSuccess?: () => Promise<unknown> | unknown;
|
|
81
|
-
onError?: () => Promise<unknown> | unknown;
|
|
82
|
-
};
|
|
83
|
-
export { PersistQueryClientProviderProps }
|
|
84
|
-
export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
|
|
85
|
-
|
|
86
|
-
export { persistQueryClientRestore }
|
|
87
|
-
|
|
88
|
-
export { PersistQueryClientRootOptions }
|
|
89
|
-
|
|
90
|
-
export { persistQueryClientSave }
|
|
91
|
-
|
|
92
|
-
export { persistQueryClientSubscribe }
|
|
93
|
-
|
|
94
|
-
export { PersistRetryer }
|
|
95
|
-
|
|
96
|
-
export { Promisable }
|
|
97
|
-
|
|
98
|
-
export { removeOldestQuery }
|
|
99
|
-
|
|
100
|
-
export { StoragePersisterOptions }
|
|
101
|
-
|
|
102
|
-
export { }
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AsyncStorage } from '@tanstack/query-persist-client-core';
|
|
2
|
-
import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
|
|
3
|
-
import { MaybePromise } from '@tanstack/query-persist-client-core';
|
|
4
|
-
import type { OmitKeyof } from '@tanstack/react-query';
|
|
5
|
-
import { Options } from 'tsup';
|
|
6
|
-
import { PersistedClient } from '@tanstack/query-persist-client-core';
|
|
7
|
-
import { PersistedQuery } from '@tanstack/query-persist-client-core';
|
|
8
|
-
import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
|
|
9
|
-
import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
|
|
10
|
-
import { Persister } from '@tanstack/query-persist-client-core';
|
|
11
|
-
import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
|
|
12
|
-
import { persistQueryClient } from '@tanstack/query-persist-client-core';
|
|
13
|
-
import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
|
|
14
|
-
import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
|
|
15
|
-
import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
|
|
16
|
-
import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
|
|
17
|
-
import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
|
|
18
|
-
import { PersistRetryer } from '@tanstack/query-persist-client-core';
|
|
19
|
-
import { Promisable } from '@tanstack/query-persist-client-core';
|
|
20
|
-
import type { QueryClientProviderProps } from '@tanstack/react-query';
|
|
21
|
-
import * as React_2 from 'react';
|
|
22
|
-
import { removeOldestQuery } from '@tanstack/query-persist-client-core';
|
|
23
|
-
import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
|
|
24
|
-
import { UserConfig } from 'vite';
|
|
25
|
-
|
|
26
|
-
export { AsyncStorage }
|
|
27
|
-
|
|
28
|
-
export declare const default_alias: any[];
|
|
29
|
-
|
|
30
|
-
export declare const default_alias_1: any[];
|
|
31
|
-
|
|
32
|
-
export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
33
|
-
|
|
34
|
-
export declare const default_alias_3: UserConfig;
|
|
35
|
-
|
|
36
|
-
export { experimental_createQueryPersister }
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @param {Object} opts - Options for building configurations.
|
|
40
|
-
* @param {string[]} opts.entry - The entry array.
|
|
41
|
-
* @returns {import('tsup').Options}
|
|
42
|
-
*/
|
|
43
|
-
export declare function legacyConfig(opts: {
|
|
44
|
-
entry: string[];
|
|
45
|
-
}): Options;
|
|
46
|
-
|
|
47
|
-
export { MaybePromise }
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @param {Object} opts - Options for building configurations.
|
|
51
|
-
* @param {string[]} opts.entry - The entry array.
|
|
52
|
-
* @returns {import('tsup').Options}
|
|
53
|
-
*/
|
|
54
|
-
export declare function modernConfig(opts: {
|
|
55
|
-
entry: string[];
|
|
56
|
-
}): Options;
|
|
57
|
-
|
|
58
|
-
export { PersistedClient }
|
|
59
|
-
|
|
60
|
-
export { PersistedQuery }
|
|
61
|
-
|
|
62
|
-
export { PersistedQueryClientRestoreOptions }
|
|
63
|
-
|
|
64
|
-
export { PersistedQueryClientSaveOptions }
|
|
65
|
-
|
|
66
|
-
export { Persister }
|
|
67
|
-
|
|
68
|
-
export { PERSISTER_KEY_PREFIX }
|
|
69
|
-
|
|
70
|
-
export { persistQueryClient }
|
|
71
|
-
|
|
72
|
-
export { PersistQueryClientOptions }
|
|
73
|
-
|
|
74
|
-
declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => React_2.JSX.Element;
|
|
75
|
-
export { PersistQueryClientProvider }
|
|
76
|
-
export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
|
|
77
|
-
|
|
78
|
-
declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
79
|
-
persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
|
|
80
|
-
onSuccess?: () => Promise<unknown> | unknown;
|
|
81
|
-
onError?: () => Promise<unknown> | unknown;
|
|
82
|
-
};
|
|
83
|
-
export { PersistQueryClientProviderProps }
|
|
84
|
-
export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
|
|
85
|
-
|
|
86
|
-
export { persistQueryClientRestore }
|
|
87
|
-
|
|
88
|
-
export { PersistQueryClientRootOptions }
|
|
89
|
-
|
|
90
|
-
export { persistQueryClientSave }
|
|
91
|
-
|
|
92
|
-
export { persistQueryClientSubscribe }
|
|
93
|
-
|
|
94
|
-
export { PersistRetryer }
|
|
95
|
-
|
|
96
|
-
export { Promisable }
|
|
97
|
-
|
|
98
|
-
export { removeOldestQuery }
|
|
99
|
-
|
|
100
|
-
export { StoragePersisterOptions }
|
|
101
|
-
|
|
102
|
-
export { }
|
package/build/modern/index.cjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
|
|
17
|
-
// src/index.ts
|
|
18
|
-
var index_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("@tanstack/query-persist-client-core"), module.exports);
|
|
21
|
-
__reExport(index_exports, require("./PersistQueryClientProvider.cjs"), module.exports);
|
|
22
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
-
0 && (module.exports = {
|
|
24
|
-
...require("@tanstack/query-persist-client-core"),
|
|
25
|
-
...require("./PersistQueryClientProvider.cjs")
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Re-export core\nexport * from '@tanstack/query-persist-client-core'\n\nexport * from './PersistQueryClientProvider'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,0BAAc,gDADd;AAGA,0BAAc,6CAHd;","names":[]}
|
package/build/modern/index.d.cts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { persistQueryClientRestore } from './_tsup-dts-rollup.cjs';
|
|
2
|
-
export { persistQueryClientSave } from './_tsup-dts-rollup.cjs';
|
|
3
|
-
export { persistQueryClientSubscribe } from './_tsup-dts-rollup.cjs';
|
|
4
|
-
export { persistQueryClient } from './_tsup-dts-rollup.cjs';
|
|
5
|
-
export { Promisable } from './_tsup-dts-rollup.cjs';
|
|
6
|
-
export { Persister } from './_tsup-dts-rollup.cjs';
|
|
7
|
-
export { PersistedClient } from './_tsup-dts-rollup.cjs';
|
|
8
|
-
export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.cjs';
|
|
9
|
-
export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.cjs';
|
|
10
|
-
export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.cjs';
|
|
11
|
-
export { PersistQueryClientOptions } from './_tsup-dts-rollup.cjs';
|
|
12
|
-
export { PersistRetryer } from './_tsup-dts-rollup.cjs';
|
|
13
|
-
export { removeOldestQuery } from './_tsup-dts-rollup.cjs';
|
|
14
|
-
export { experimental_createQueryPersister } from './_tsup-dts-rollup.cjs';
|
|
15
|
-
export { PersistedQuery } from './_tsup-dts-rollup.cjs';
|
|
16
|
-
export { MaybePromise } from './_tsup-dts-rollup.cjs';
|
|
17
|
-
export { AsyncStorage } from './_tsup-dts-rollup.cjs';
|
|
18
|
-
export { StoragePersisterOptions } from './_tsup-dts-rollup.cjs';
|
|
19
|
-
export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.cjs';
|
|
20
|
-
export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.cjs';
|
|
21
|
-
export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.cjs';
|
package/build/modern/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { persistQueryClientRestore } from './_tsup-dts-rollup.js';
|
|
2
|
-
export { persistQueryClientSave } from './_tsup-dts-rollup.js';
|
|
3
|
-
export { persistQueryClientSubscribe } from './_tsup-dts-rollup.js';
|
|
4
|
-
export { persistQueryClient } from './_tsup-dts-rollup.js';
|
|
5
|
-
export { Promisable } from './_tsup-dts-rollup.js';
|
|
6
|
-
export { Persister } from './_tsup-dts-rollup.js';
|
|
7
|
-
export { PersistedClient } from './_tsup-dts-rollup.js';
|
|
8
|
-
export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.js';
|
|
9
|
-
export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.js';
|
|
10
|
-
export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.js';
|
|
11
|
-
export { PersistQueryClientOptions } from './_tsup-dts-rollup.js';
|
|
12
|
-
export { PersistRetryer } from './_tsup-dts-rollup.js';
|
|
13
|
-
export { removeOldestQuery } from './_tsup-dts-rollup.js';
|
|
14
|
-
export { experimental_createQueryPersister } from './_tsup-dts-rollup.js';
|
|
15
|
-
export { PersistedQuery } from './_tsup-dts-rollup.js';
|
|
16
|
-
export { MaybePromise } from './_tsup-dts-rollup.js';
|
|
17
|
-
export { AsyncStorage } from './_tsup-dts-rollup.js';
|
|
18
|
-
export { StoragePersisterOptions } from './_tsup-dts-rollup.js';
|
|
19
|
-
export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.js';
|
|
20
|
-
export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.js';
|
|
21
|
-
export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.js';
|
package/build/modern/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Re-export core\nexport * from '@tanstack/query-persist-client-core'\n\nexport * from './PersistQueryClientProvider'\n"],"mappings":";AACA,cAAc;AAEd,cAAc;","names":[]}
|