resetConfirmation is always undefined
srflp opened this issue · comments
Hey,
this bit of code seems to do nothing.
react-router-prompt/src/hooks/use-confirm.ts
Lines 63 to 65 in 525a4ed
Callback passed to useCallback returns nothing, so resetConfirmation is always undefined
Thanks @srflp for reporting issue here.
That's a good catch! This seems bug with multiple functions and so it is never invoked. We can remove one of the nested function.
Also the API doc is missing for this method.
I am swamped a bit now and so this is open for contribution. I can take up later if no one is available to pick.