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

Using React.Children.map in getChildMapping is causing element keys to change. #912

Open
maitrungdong opened this issue Oct 21, 2024 · 0 comments

Comments

@maitrungdong
Copy link

What is the current behavior?

When I compare keys in child elements then get an issue that these keys has an additional prefix .$.
I think that is an unpredictable behavior and can make some bugs!!!

What is the expected behavior?

I want to these keys should be persisted.

Could you provide a CodeSandbox demo reproducing the bug?

I found this issue in the code base. The reason is using Children.map in getChildMapping method.
A similar issue on stackoverflow: link

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

No branches or pull requests

1 participant