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) => {
2727 const { search } = useDatabrowserStore ( )
2828 const cleanSearchKey = search . key . replace ( "*" , "" )
2929
30- const { data : exactMatchType , isFetching } = useFetchKeyType ( cleanSearchKey )
30+ const { data : exactMatchType , isFetching, isLoading } = useFetchKeyType ( cleanSearchKey )
3131
3232 const { fetchKeys, resetCache } = useFetchKeys ( search )
3333 const pageRef = useRef ( 0 )
@@ -85,7 +85,12 @@ export const KeysProvider = ({ children }: PropsWithChildren) => {
8585 < KeysContext . Provider
8686 value = { {
8787 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+ } ,
8994 refetch,
9095 } }
9196 >
You can’t perform that action at this time.
0 commit comments