Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use onBeforeUnmount in useEventListener
use `onBeforeUnmount` in `useEventListener` instead of `onUnmounted` since `onUnmounted will not work if you trying to pass some element ref from the consumer component. Using the `onUnmounted` the ref will be null since the component is unmounted, so we should use `onBeforeUnmount`
- Loading branch information