Skip to content

Commit fb83d70

Browse files
committed
Add a note about sleeping state machines
1 parent 8d586c9 commit fb83d70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/app/(examples)/QuickStart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export default function QuickStart() {
4242
const handleTakeDamage = () => {
4343
if (health && setHealth) {
4444
setHealth(health - 7);
45-
// In case the State Machine pauses due to inactivity
45+
// If all state machines have settled, you might need to wake the state machine back up.
46+
// This can happen when all animations have finished playing.
4647
riveRef?.play();
4748
}
4849
};

0 commit comments

Comments
 (0)