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

When using a contentTemplate constructor is called many times with different this.props.id #74

Open sealightPT opened 5 years ago

sealightPT commented 5 years ago

When I was trying to log the alert messages on contentTemplate constructor or componentDidMount I noticed it was being called twice! When we stack a new alert (with effect="stackslide", for instance) it can even be called a third time for the same message.