juliancwirko / react-s-alert

Alerts / Notifications for React with rich configuration options
https://www.npmjs.com/package/react-s-alert
MIT License
649 stars 69 forks source link

some "Encountered two children with the same key" warnings reported by Chrome console #66

Open ChampionRoy opened 6 years ago

ChampionRoy commented 6 years ago

My code and config like this: 1.place sAlert component in my main app component: <Alert stack={{limit: 3, spacing: 50}} effect='slide' position='top-right' timeout={5000} offset={50} /> 2.and make calls to activate alerts Alert.error('some error message'); When I triple clicked a button and get an invalid form ,then make three calls on activate alerts. After alerts fade away, some warnings report on Chrome console: image image Anyone has same problems?

ashour commented 6 years ago

+1 Yup, getting the same error here

7c commented 6 years ago

+1 same applies to me

Warning: Encountered two children with the same key,alert-key-xnlhe6qvdwr-undefined. 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.

bernagl commented 5 years ago

Same here