zova-module-a-model 5.0.33 → 5.0.37
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": "zova-module-a-model",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.37",
|
|
4
4
|
"title": "a-model",
|
|
5
5
|
"zovaModule": {
|
|
6
6
|
"capabilities": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"localforage": "^1.10.0",
|
|
60
60
|
"mutate-on-copy": "^1.0.1"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "cd0d7552e53fd59f49f4d19dfc0a488909f4f1d6"
|
|
63
63
|
}
|
|
@@ -4,12 +4,12 @@ import 'zova-module-demo-todo';
|
|
|
4
4
|
import 'zova-module-a-model';
|
|
5
5
|
import 'zova-module-a-router';
|
|
6
6
|
import 'zova-module-a-style';
|
|
7
|
-
import 'zova-module-a-
|
|
7
|
+
import 'zova-module-a-zova';
|
|
8
8
|
import 'zova-module-home-base';
|
|
9
9
|
import 'zova-module-home-icon';
|
|
10
10
|
import 'zova-module-home-index';
|
|
11
11
|
import 'zova-module-home-layout';
|
|
12
12
|
import 'zova-module-home-user';
|
|
13
|
+
import 'zova-module-devui-adapter';
|
|
13
14
|
import 'zova-module-a-pinia';
|
|
14
15
|
import 'zova-module-a-tabs';
|
|
15
|
-
import 'zova-module-devui-adapter';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
hashKey,
|
|
11
11
|
} from '@tanstack/vue-query';
|
|
12
12
|
import { UnwrapNestedRefs } from 'vue';
|
|
13
|
-
import { useCustomRef } from 'zova';
|
|
13
|
+
import { deepExtend, useCustomRef } from 'zova';
|
|
14
14
|
import { DefinedInitialQueryOptions, UndefinedInitialQueryOptions } from '../../common/types.js';
|
|
15
15
|
import { BeanModelQuery } from './bean.model.query.js';
|
|
16
16
|
import { resolveStaleTime } from '../../types.js';
|
|
@@ -73,7 +73,7 @@ export class BeanModelUseQuery<TScopeModule = unknown> extends BeanModelQuery<TS
|
|
|
73
73
|
TQueryKey extends QueryKey = QueryKey,
|
|
74
74
|
>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): TData;
|
|
75
75
|
$useQueryLocal(options, queryClient) {
|
|
76
|
-
options =
|
|
76
|
+
options = deepExtend(
|
|
77
77
|
{
|
|
78
78
|
meta: {
|
|
79
79
|
persister: {
|
|
@@ -135,7 +135,7 @@ export class BeanModelUseQuery<TScopeModule = unknown> extends BeanModelQuery<TS
|
|
|
135
135
|
TQueryKey extends QueryKey = QueryKey,
|
|
136
136
|
>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): TData;
|
|
137
137
|
$useQueryCookie(options, queryClient) {
|
|
138
|
-
options =
|
|
138
|
+
options = deepExtend(
|
|
139
139
|
{
|
|
140
140
|
meta: {
|
|
141
141
|
persister: {
|
|
@@ -198,7 +198,7 @@ export class BeanModelUseQuery<TScopeModule = unknown> extends BeanModelQuery<TS
|
|
|
198
198
|
TQueryKey extends QueryKey = QueryKey,
|
|
199
199
|
>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): TData;
|
|
200
200
|
$useQueryMem(options, queryClient) {
|
|
201
|
-
options =
|
|
201
|
+
options = deepExtend({}, options, {
|
|
202
202
|
enabled: false,
|
|
203
203
|
staleTime: Infinity,
|
|
204
204
|
meta: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BeanBase, Local } from 'zova';
|
|
1
|
+
import { BeanBase, deepExtend, Local } from 'zova';
|
|
2
2
|
import { ScopeModule } from '../.metadata/this.js';
|
|
3
3
|
import { dehydrate, hydrate, QueryClient, VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ export class LocalStorage extends BeanBase<ScopeModule> {
|
|
|
8
8
|
// options
|
|
9
9
|
let options = this.scope.config.queryClientConfig.defaultOptions;
|
|
10
10
|
if (process.env.SERVER) {
|
|
11
|
-
options =
|
|
11
|
+
options = deepExtend({}, options, {
|
|
12
12
|
queries: { gcTime: Infinity },
|
|
13
13
|
});
|
|
14
14
|
}
|