Skip to content

Commit 5cf1898

Browse files
committed
fix: tour effect
1 parent 01566a1 commit 5cf1898

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/machines/tour/src/tour.machine.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export const machine = createMachine<TourSchema>({
9191

9292
watch({ track, context, action }) {
9393
track([() => context.get("stepId")], () => {
94-
action(["setResolvedTarget", "raiseStepChange", "syncTargetAttrs"])
94+
queueMicrotask(() => {
95+
action(["setResolvedTarget", "raiseStepChange", "syncTargetAttrs"])
96+
})
9597
})
9698
},
9799

0 commit comments

Comments
 (0)