We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d17443 commit fd04ed5Copy full SHA for fd04ed5
packages/core/src/v3/runtime/preventMultipleWaits.ts
@@ -21,6 +21,9 @@ export function preventMultipleWaits() {
21
isExecutingWait = true;
22
23
try {
24
+ //delay calling the callback by one tick
25
+ //(to ensure the first wait doesn't checkpoint before the second is called)
26
+ await Promise.resolve();
27
return await cb();
28
} finally {
29
isExecutingWait = false;
0 commit comments