File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
computed ,
3
3
getCurrentScope ,
4
4
onScopeDispose ,
5
- reactive ,
6
- readonly ,
5
+ shallowReactive ,
6
+ shallowReadonly ,
7
7
toRefs ,
8
8
watch ,
9
9
} from 'vue-demi'
@@ -105,7 +105,7 @@ export function useBaseQuery<
105
105
} )
106
106
107
107
const observer = new Observer ( client , defaultedOptions . value )
108
- const state = reactive ( observer . getCurrentResult ( ) )
108
+ const state = shallowReactive ( observer . getCurrentResult ( ) )
109
109
110
110
let unsubscribe = ( ) => {
111
111
// noop
@@ -201,7 +201,7 @@ export function useBaseQuery<
201
201
} ,
202
202
)
203
203
204
- const object : any = toRefs ( readonly ( state ) )
204
+ const object : any = toRefs ( shallowReadonly ( state ) )
205
205
for ( const key in state ) {
206
206
if ( typeof state [ key as keyof typeof state ] === 'function' ) {
207
207
object [ key ] = state [ key as keyof typeof state ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export function getClientKey(key?: string) {
9
9
}
10
10
11
11
export function updateState (
12
- state : Record < string , unknown > ,
12
+ state : Record < string , any > ,
13
13
update : Record < string , any > ,
14
14
) : void {
15
15
Object . keys ( state ) . forEach ( ( key ) => {
You can’t perform that action at this time.
0 commit comments