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
useActionPending actually supports sync function inside its implement except the pendingCount state can be incremented and decremented without any meaningful case, the unexpected change of pendingCount can cause a performance dropdown sometimes.
In case developers are not aware of the function's async or not, it is better for useActionPending to be compatible with both, reducing unexpected change of pendingCount state by examining function's return value.
useActionPending
actually supports sync function inside its implement except thependingCount
state can be incremented and decremented without any meaningful case, the unexpected change ofpendingCount
can cause a performance dropdown sometimes.In case developers are not aware of the function's async or not, it is better for
useActionPending
to be compatible with both, reducing unexpected change ofpendingCount
state by examining function's return value.@ice-zjchen
The text was updated successfully, but these errors were encountered: