fetchQuery for refetchable fragments doesn't use cache
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
I am using `relay-experimental` with refetchable fragments and imperatively calling `fetchQuery` as described here in the [`docs`](https://relay.dev/docs/en/a-guided-tour-of-relay#refreshing-fragments).
The problem is that it will refetch data even when the variables are the same, never actually hitting the cache. Also the data that gets back after a refetch is never displayed, so the component will only display the initial data that comes from `useFragment`.
I would gladly use `useRefetchableFragment` with `useTransition`, but unfortunately we are stuck in the blocking mode and can't use `useTransition` yet, so `fetchQuery` with manually subscribing to state transitions was my only hope. Really appreciate any help on this issue!
Contributor guide
Assessment
This issue has not been assessed yet.