-
Hi rvital, Have a query regarding useIdle hook. Does this mean i should return a promise, how does the user check if the returned value is true or false after the supplied timeout is elapsed, could you please give me some more clarity on how this useIdle hook is going to be used by a user. |
Beta Was this translation helpful? Give feedback.
Answered by
rtivital
Jul 17, 2021
Replies: 1 comment
-
Use react state to store value, hook definition should be: function useIdle(timeout: number): boolean; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
achmurali
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use react state to store value, hook definition should be: