refetch don't call onComplete callback when fetchPolicy set to store-and-network only at first time.
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Hello. I have an issue when using refetch method of `usePaginationFragment` hook with fetchPolicy as `store-and-network`.
with fetchPolicy of `store-and-network`, refetch won't call its onComplete callback **only at first time**.
With other fetch policy option or try to refetch again, it calls onComplete every time.
```typescript
refetchAdvertisementList(variable, {
fetchPolicy: 'store-and-network',
onComplete: () => {
console.log('dispose'); // this won't happen only at first time.
dispose();
},
});
```
Here's my event log and I can't find any difference between success case and failure case in Relay event logger.(First section is Failure, and second section is success)

Contributor guide
Assessment
This issue has not been assessed yet.