Stash the key used by the previous data-join
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start by reading the keyed data-join implementation in d3-selection and its tests for selection.data. The issue proposes storing each existing element’s key as node.key only when a key function is supplied, then using that stored key on a later join. Done means keyed joins no longer recompute keys for existing elements while preserving current join behavior.
Written by the indexing model from the issue text.
Description
One of the surprising things about the data join is that you have to recompute a new key for the existing elements. It’d be nice if we stashed the key (if one exists) as node.__key__, similar to how we stash data as node.__data__. That way you’d only need to compute the key for the data, not for the existing elements. This key would only be stashed in the cases where you pass a key function to selection.data.
- Dominant language
- JavaScript
- Stars
- 571
- Forks
- 283
- Avg merge
- 7h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from d3/d3-selection
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
d3/d3-selection#324 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
d3/d3-selection#323 ·
-
d3 v7.9.0 – d3.pointer() uses createSVGPoint() which is now deprecatedPossibly taken @Fil claimed this 677 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
d3/d3-selection#320 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
d3/d3-selection#319 · 1 comment ·
-
selection.appendAllOpenenhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
d3/d3-selection#301 · 3 comments ·
Similar issues
-
maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
assistant-ui/assistant-ui#10496 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
ai bug design good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
neomjs/neo-agent-institution#927 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gramps-project/gramps-web#1671 ·
Maintainers usually reply within 1 day
-
bug good first issue priority: P2 status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RhinoLink-Tech/data-fabric#502 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
cline/mcp-marketplace#3708 ·