-
-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast Conflicting or loading infinite in promise at concurrent requests #1101
Comments
vikassharmasat
changed the title
Toast Conflicting in promise at many requests
Toast Conflicting or loading infinite in promise at concurrent requests
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: