Closed budde377 closed 2 years ago
Merging #1038 (fb09fe8) into beta (05ca62a) will increase coverage by
0.27%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## beta #1038 +/- ##
==========================================
+ Coverage 51.25% 51.53% +0.27%
==========================================
Files 36 36
Lines 1389 1397 +8
==========================================
+ Hits 712 720 +8
Misses 677 677
Impacted Files | Coverage Δ | |
---|---|---|
packages/graphql/lib/src/core/query_manager.dart | 68.45% <100.00%> (+1.57%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 405e8bd...fb09fe8. Read the comment docs.
Thanks guys!
Good job!
When fetch policy is
cacheAndNetwork
, we now return cache and then fetch from the network, if the cached result is available). If not we fetch from the network.The current implementation always awaits the network response if available. But when the fetch policy is
cacheAndNetwork
we first want to return the cached result (if available) and then continue to fetch over the network in background. This PR fixes this.