xnimorz / use-debounce

A debounce hook for react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isPending Type '() => boolean' is not assignable to type 'boolean | null | undefined'.

kockok opened this issue · comments

commented

I have a button disabled prop that accepts only 'boolean | null | undefined' whilst the latest version of this library returns isPending with () => boolean.

disabled={debouncedCallback.isPending}

So, how to fix it?