dismissAfter in toastConfig isn't effective #1233
-
Hi team, I'm using the toast component with a custom redux action that we've created for our project like this :
The Screen.Recording.2021-02-28.at.2.23.01.PM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, you mention a custom redux action, does that mean you are storing that state in Redux and not using the |
Beta Was this translation helpful? Give feedback.
-
Hi there. Yeah I suspected that might be the case. It's the hook that does the handling of the timeout. Toaster is purely presentational. As you are handling state in your own hook in console, you'll need to be handling the timeout there for correctly dismissing toasts after a certain time. |
Beta Was this translation helpful? Give feedback.
Hi there.
Yeah I suspected that might be the case. It's the hook that does the handling of the timeout. Toaster is purely presentational.
As you are handling state in your own hook in console, you'll need to be handling the timeout there for correctly dismissing toasts after a certain time.