Skip to content
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

Feature: configurable dismiss timer duration #74

Open
StErMi opened this issue Apr 27, 2021 · 3 comments
Open

Feature: configurable dismiss timer duration #74

StErMi opened this issue Apr 27, 2021 · 3 comments

Comments

@StErMi
Copy link

StErMi commented Apr 27, 2021

At the moment the dismiss operation is delayed by 1000ms and that param is hardcoded into the code. Could it be something useful to configure?

@lemihthien
Copy link

// show toast 3000ms
toast.success('some text', { duration: 3000 })

@StErMi
Copy link
Author

StErMi commented Apr 28, 2021

Hi @lemihthien I'm not talking about the duration of the toast itself but the duration of the delay between dismissing (clicking on an X button) and the visual effect of dismissing it. That's hardcoded at 1 second here: https://github.com/timolins/react-hot-toast/blob/main/src/core/store.ts#L53

@heyfuaad
Copy link
Contributor

We're using this in a project and customizing the delay duration is quite important for us - I'll try to open a PR for this :)

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

No branches or pull requests

3 participants