fix(fl_query_hooks): newest query/mutation/infinite-query instance not getting returned

This commit is contained in:
Kingkor Roy Tirtho
2022-09-23 09:50:22 +06:00
parent e0c3d7f4ba
commit 03a053bba6
6 changed files with 6 additions and 15 deletions
@@ -129,5 +129,5 @@ InfiniteQuery<T, Outside, PageParam>
return null;
});
return infiniteQuery.value;
return queryBowl.getInfiniteQuery(job.queryKey) ?? infiniteQuery.value;
}
@@ -85,5 +85,5 @@ Mutation<T, V> useMutation<T extends Object, V>({
return null;
});
return mutation.value;
return queryBowl.getMutation(job.mutationKey) ?? mutation.value;
}
@@ -125,5 +125,5 @@ Query<T, Outside> useQuery<T extends Object, Outside>({
return null;
});
return query.value;
return queryBowl.getQuery(job.queryKey) ?? query.value;
}