Skip to content

added: deleteNotification method which instantly removes notification…#56

Open
pollen8 wants to merge 2 commits into
igorprado:masterfrom
pollen8:master
Open

added: deleteNotification method which instantly removes notification…#56
pollen8 wants to merge 2 commits into
igorprado:masterfrom
pollen8:master

Conversation

@pollen8

@pollen8 pollen8 commented Aug 9, 2016

Copy link
Copy Markdown

…, rather than removeNotification() which applies animation. Useful when a loading and a success message follow each other in quick succession, as the loading notificaitons animation had not yet terminated, causing an odd slide in and down to occur

Robert Clayburn added 2 commits August 9, 2016 11:32
…, rather than removeNotification() which applies animation. Useful when a loading and a success message follow each other in quick succession, as the loading notificaitons animation had not yet terminated, causing an odd slide in and down to occur
@laurentlaporte

Copy link
Copy Markdown

I really need this too

@igorprado

Copy link
Copy Markdown
Owner

Sorry the delay on this. @pollen8 can you doc this on README too?

this.state.notifications.forEach(function(item, index) {
if (item.uid === uid) {
self.state.notifications.splice(index, 1);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must never ever edit the state w/o setState.

@nealoke

nealoke commented Mar 23, 2017

Copy link
Copy Markdown

@igorprado Will this also be in the 1.0.0 version? Would be a great addition

}
});
}
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

5 participants