You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the App component from antd anywhere in a react app.
What is expected?
No warnings for duplicate keys in the console.
What is actually happening?
The following warning is displayed in the console:
Warning: Encountered two children with the same key, holder. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
React dev tools show the following items in the context created by the App component:
Anonymous Memo
Anonymous key="holder" ForwardRef
Anonymous key="holder" ForwardRef
Environment
Info
antd
5.1.0
React
18.2.0
System
Microsoft Windows 10 Education Version 10.0.19044 Build 19044
Browser
Chrome Version 108.0.5359.125 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Reproduction link
Steps to reproduce
What is expected?
No warnings for duplicate keys in the console.
What is actually happening?
The following warning is displayed in the console:
Warning: Encountered two children with the same key,
holder
. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.React dev tools show the following items in the context created by the App component:
The text was updated successfully, but these errors were encountered: