facebook / facebook/relay

Some caches get reset with createMockEnvironment

Open
#4,533 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

It happens when you have two queries that request different subfields of the same root field, and one of the queries has some nested subfields:

https://github.com/Hypnosphi/relay-resets-cache

```
npm install
npm test
```

`user.name` becomes undefined after resolving the second query

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.