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
Wouldn't it be more useful if addTask would return the original promise?
One could then write const response = await addTask(fetch('/api/test')); instead of
Wouldn't it be more useful if
addTaskwould return the original promise?One could then write
const response = await addTask(fetch('/api/test'));instead ofEdit: @DanHarman also mentioned it.