Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The toast is dismissed and immediately removed from the DOM tree.

What is the expected behavior?
After successfully swiping away the toast should play a collapse animation unless the user explicitly disabled it.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
It seems like this bug appeared while refactoring the project to support react-hooks.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The toast is dismissed and immediately removed from the DOM tree.
What is the expected behavior?
After successfully swiping away the toast should play a collapse animation unless the user explicitly disabled it.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
It seems like this bug appeared while refactoring the project to support react-hooks.