facebook / facebook/relay

RANGE_ADD same object insertion

Open
#2,023 2 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I've implemented RANGE_ADD which works well but if I submit the exact same object I get the following issue I notice the object is added but their id's are the same.

![image](https://user-images.githubusercontent.com/1095469/29085611-18831c9a-7c70-11e7-8a2d-b7e4906ffd8e.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported RANGE_ADD case with the exact same object and inspect the resulting object IDs. Trace the mutation handling from the RANGE_ADD entry point to determine where duplicate IDs are produced; done means the behavior is corrected and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.