facebook / facebook/relay

cacheConfig always defaults to force: true

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

Description

Component:

```
...
const [queryRef, loadQuery] = useQueryLoader(query);
useEffect(() => {
loadQuery(
{ businessId: '/platform/api/businesses/' + businessId },
{
fetchPolicy: 'store-or-network',
networkCacheConfig: {
force: false,
}
});
}, [loadQuery, businessId]);
...
```

environment.js:

```
function fetchQuery(
operation,
variables,
cacheConfig,
) {
console.log(cacheConfig.force); // RETURNS TRUE
}
```

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.