Closed ratnajeetshyamkunwar closed 5 years ago
Is this working?
@yuritoledo Yes it works :)
amazing, congratz :)
It's working for me
const closeLoading = cogoToast.loading('logining..', { hideAfter: 0 });
userService.login(username, password).
then(
user => {
closeLoading();
cogoToast.success('Login!.');
dispatch(success(username));
},
error => {
closeLoading();
dispatch(failure(error.toString()));
cogoToast.error(error.toString());
}
);
};
Unhandled Rejection (TypeError): closeLoading is not a function
how do i?
@tamert what version are you using?
The lib had a breaking change in hide method. Take a look:
const closeLoading = cogoToast.loading('uploading..', { hideAfter: 0 }); // after logic closeLoading();
Isn't this suit for your situation?
What if I want a close button inside of toast?
Isn't this suit for your situation?