We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7731449 commit c9f2662Copy full SHA for c9f2662
1 file changed
src/NotificationSystem.jsx
@@ -70,13 +70,13 @@ var NotificationSystem = React.createClass({
70
return toCheck.uid !== uid;
71
});
72
73
- if (notification && notification.onRemove) {
74
- notification.onRemove(notification);
75
- }
76
-
77
if (this._isMounted) {
78
this.setState({ notifications: notifications });
79
}
+
+ if (notification && notification.onRemove) {
+ notification.onRemove(notification);
+ }
80
},
81
82
getInitialState: function() {
0 commit comments