Skip to content

Commit

Permalink
apply params while playing
Browse files Browse the repository at this point in the history
  • Loading branch information
tol-is committed Dec 11, 2022
1 parent 45a0e0f commit e3b6734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export const useScramble = (props: UseScrambleProps) => {
return () => {
cancelAnimationFrame(rafRef.current);
};
}, [text, speed]);
}, [text, speed, animate]);

return { ref: nodeRef, replay: play };
};

0 comments on commit e3b6734

Please sign in to comment.