facebook / facebook/relay

`fetchQuery` not supporting `store-and-network` and `store-only` fetch policies

Open
#4,880 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

After getting an error in my app and after looking at the [`fetchQuery` function](https://github.com/facebook/relay/blob/be8f5f77e113bd641d3514b913a55182341ff984/packages/relay-runtime/query/fetchQuery.js#L115), I found out `store-and-network` and `store-only` fetch policies are not supported. Is there any detailed explanation on why?

Also, it would be nice to have it covered in the docs if it stays unsupported.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.