Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Only require key for adjacent sibling widgets #661

@bitpshr

Description

@bitpshr

Enhancement

It would be nice if only adjacent sibling widgets using the same class required keys.

Package Version: latest

Code

Expected behavior:

render() {
    return v('div', {}, [
        v('div', {}, [ w(MyWidget, {})]),
        v('div', {}, [ w(MyWidget, {})])
    ]);
}

Actual behavior:

render() {
    return v('div', {}, [
        v('div', {}, [ w(MyWidget, { key: 'a' })]),
        v('div', {}, [ w(MyWidget, { key: 'b' })])
    ]);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions