Skip to content

Commit

Permalink
Try delaying for a tick
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Apr 12, 2024
1 parent 7467562 commit 5d4d977
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/utils/src/instrument/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ function instrumentFetch(): void {
});
}

return response;
return new Promise(resolve => {
setTimeout(() => {
resolve(response);
}, 0);
});
},
(error: Error) => {
const erroredHandlerData: HandlerDataFetch = {
Expand Down

0 comments on commit 5d4d977

Please sign in to comment.