fix(useQuery): loading status on error

This commit is contained in:
Guillaume Chau 2019-11-30 20:01:52 +01:00
parent e337836fb9
commit 93e6c5b93a

View File

@ -96,6 +96,8 @@ export function useQuery<
function onError (queryError: any) {
error.value = queryError
loading.value = false
networkStatus.value = 8
}
let onStopHandlers: (() => void)[] = []