You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toast don't close if API Request function is centralized and in scenario of concurrent requests. It will process only one result others will be in infinite.
The text was updated successfully, but these errors were encountered:
vikassharmasat
changed the title
Toast Conflicting in promise at many requests
Toast Conflicting or loading infinite in promise at concurrent requests
Apr 25, 2024
The toast don't close if API Request function is centralized and in scenario of concurrent requests. It will process only one result others will be in infinite.
there are some screenshots please check
`
import { Bounce, toast } from "react-toastify";
export class ToastUtil {
constructor( unique_key ) {
this.toast_id = {};
this.unique_key = unique_key;
this.toastify_options = {
position: "top-right",
autoClose: 5000,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
progress: undefined,
theme: "colored",
transition: Bounce,
isLoading: false,
};
this.toast = toast;
}
}
`The text was updated successfully, but these errors were encountered: