Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Warn or prevent using unpack operator within components #615

Copy link
Copy link
Closed as not planned
@Archmonger

Description

@Archmonger
Issue body actions

Using the unpack operator is dangerous within a component's return. ReactPy relies on the position of child elements to keep track of hooks (for any element that doesn't have a key=... defined). We'll either need to warn against using it, or completely prevent it from being used.

There is currently has no way of providing "key does not exist for dynamic children" warnings when using the unpack operator.

Original Discussion

#607

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-3-lowMay be resolved one any timeline.May be resolved one any timeline.type-revisionAbout a change in functionality or behaviorAbout a change in functionality or behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.