relay-tools / react-relay-network-layer

ReactRelayNetworkLayer with middlewares and query batching for Relay Classic.
MIT License
277 stars 47 forks source link

Fix issue where if relay dedups requests, not all requests are completed #52

Closed fracmak closed 7 years ago

fracmak commented 7 years ago

I've run into a scenario with Relay Classic where if you have 2 components that make the exact same query, Relay will dedup the queries and reuse the request ids but still make 2 requests. The batch code then loses track of all the duplicate requests being made and never resolves or rejects the duplicate requests

nodkz commented 7 years ago

Great PR. Thanks! 👍 v2.0.2 on npm already 😉