Optional
A function that returns a boolean indicating whether the hook should be disabled.
If true, disables the event listener.
A function that returns a boolean indicating whether the hook should be disabled.