Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an issue with React giving warning about static children not having unique keys when using classic jsx factory #2066

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Nov 2, 2020

fixes #2065

…ving unique keys when using classic `jsx` factory
@changeset-bot
Copy link

changeset-bot bot commented Nov 2, 2020

🦋 Changeset detected

Latest commit: 6d539e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@emotion/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR


// https://github.com/facebook/react/blob/fd61f7ea53989a59bc427603798bb111c852816a/packages/react/src/ReactElement.js#L386-L400
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm kinda not sure why I have changed this logic to replicate what React is doing under the hood. I've implemented support for those new runtimes and refactor to the classic jsx a few months back, so 🤷‍♂️

@Andarist
Copy link
Member Author

Andarist commented Nov 2, 2020

@mitchellhamilton merging this as its sort of a hotfix

@Andarist Andarist merged commit fe30cbd into master Nov 2, 2020
@Andarist Andarist deleted the fix/create-element-static-children-key-warn branch November 2, 2020 09:49
@github-actions github-actions bot mentioned this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10.1.0 jsx implementation causes key errors
1 participant