react-hook-mousetrap icon indicating copy to clipboard operation
react-hook-mousetrap copied to clipboard

Question: Why is refs used in the hook here ?

Open adil62 opened this issue 2 years ago • 0 comments

Hi @aramando ,

Apologies for the noob question, I have been wondering why the handlerCallback isn't directly passed to Mousetrap; Instead, you seem to be storing the handlerCallback function in an actionRef and invoking it. What is the difference?

adil62 avatar Feb 15 '23 10:02 adil62