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
The problem with supporting an async func is that the hook is designed to modify the data/result object in place, so the return value is ignored.
We could have a spurious return value. If that is a Promise, we can wait on it to resolve and only then resolve the returned hook value.. Something similar to
Now alterItems only works for sync func. Sometimes we need another
alterItemsAsync
to handle async funcs.The text was updated successfully, but these errors were encountered: