Open
Description
Error message
leaveEvent must be wrapped with useUnit from effector-react before usage inside React components
Example
function useLeave(event: Event<void>) {
const e = useUnit(event)
}
No need to apply effector/prefer-useUnit to custom hooks params.
Verification is required only at the place of use.
For example above - error message valid if event no wrap in to useUnit