yewstack / yewstack/yew

Require `key` prop in array comprehensions

Open
#1,348 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-yew-macro
Dominant language
Rust
Stars
32.8k
Forks
1.5k
Avg merge
5h 34m
Merged PRs (30d)
2

Description

Problem
Per #1345, a key prop should be provided whenever there is an array of children elements. We do not currently see an error or warning when one is not provided.

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name any files, tests, or entry points. Start by locating Yew's handling of array comprehensions and the existing key-prop validation described in #1345. Done means array comprehensions without a key prop produce the expected error or warning, with coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.