You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most situation, not add state to the deps parameter won't cause any problem. In some rare condition, for example, in our company's project,state won't update in the callback function due to closure, it's really difficult to reappear it in Codesanbox
The text was updated successfully, but these errors were encountered:
What is the current behavior?
Not add
state
touseCallback
deps parameter.react-use/src/useAsyncFn.ts
Lines 45 to 64 in 4d7daeb
What is the expected behavior?
Add
state
touseCallback
deps parameter.In most situation, not add
state
to thedeps
parameter won't cause any problem. In some rare condition, for example, in our company's project,state
won't update in thecallback
function due to closure, it's really difficult to reappear it in CodesanboxThe text was updated successfully, but these errors were encountered: