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
Currently .update() awaits only the this.write() operation. It would be nice for it to also await the passed callback which mutates the state. Without the await, the persisted value could occur before the callback finishes its mutation.
Activity
kaaax0815 commentedon Sep 18, 2024
I agree.
Using something like
or simply
would be fairly simple.
If this is not wanted. At least do something like
to not allow async functions