Skip to content
Discussion options

You must be logged in to vote

@gdfreitas This issue is happening because when you click the dismiss/close button, it changes the context.isClosePausedRef current value to true, so when you create a new Toast, it does not reset its value to false and this verification doesn't trigger the startTimer function to dismiss the Toast automatically.

if (open && !context.isClosePausedRef.current) startTimer(duration);

I opened a PR to fix this and another similar issue with resetting the ref current values.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gdfreitasdev
Comment options

@adolfoscheidt
Comment options

Answer selected by gdfreitasdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants