File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/components/databrowser/hooks Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const KeysProvider = ({ children }: PropsWithChildren) => {
27
27
const { search } = useDatabrowserStore ( )
28
28
const cleanSearchKey = search . key . replace ( "*" , "" )
29
29
30
- const { data : exactMatchType , isFetching } = useFetchKeyType ( cleanSearchKey )
30
+ const { data : exactMatchType , isFetching, isLoading } = useFetchKeyType ( cleanSearchKey )
31
31
32
32
const { fetchKeys, resetCache } = useFetchKeys ( search )
33
33
const pageRef = useRef ( 0 )
@@ -85,7 +85,12 @@ export const KeysProvider = ({ children }: PropsWithChildren) => {
85
85
< KeysContext . Provider
86
86
value = { {
87
87
keys,
88
- query,
88
+ // @ts -expect-error Ignore the error with spread syntax
89
+ query : {
90
+ ...query ,
91
+ isLoading : isLoading || query . isLoading ,
92
+ isFetching : isFetching || query . isFetching ,
93
+ } ,
89
94
refetch,
90
95
} }
91
96
>
You can’t perform that action at this time.
0 commit comments