We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 607e78d commit 1604ba2Copy full SHA for 1604ba2
1 file changed
src/index.ts
@@ -609,6 +609,6 @@ export function onceStateChangesTo(machineInstance: MachineInstance, state: stri
609
if (event.value === state) {
610
resolve();
611
}
612
- }, { signal });
+ }, { signal, once: true });
613
})
614
0 commit comments