Skip to content

Commit

Permalink
fix effect dep bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Sep 27, 2024
1 parent 2bba9f7 commit 70956f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/packages/playback/src/lib/use-create-timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const useCreateTimeline = (
play();
e.stopPropagation();
},
[timelineName]
[timelineName, play]
);

const onPauseEvent = useCallback(
Expand All @@ -184,7 +184,7 @@ export const useCreateTimeline = (
pause();
e.stopPropagation();
},
[timelineName]
[timelineName, pause]
);

const onSeek = useCallback(
Expand Down

0 comments on commit 70956f1

Please sign in to comment.