Closed y1n0 closed 2 years ago
This solves issue #60.
We can pass an onHide: (id, position) => {} to be called in the end of the hiding mechanism.
onHide: (id, position) => {}
const { hide } = cogoToast.success('This is a success message.', { onClick: () => { hide(); }, onHide: (id, position) => { console.log(`hid toast ${id}`); } });
This onHide callback doesn't seem to be working. I tried logging a few console messages inside it, but none of them were printed.
This solves issue #60.
We can pass an
onHide: (id, position) => {}
to be called in the end of the hiding mechanism.