Skip to content

🎥 Make videos programmatically with React

Update current-time.md

Jonny Burger1ff785b4d542
diff --git a/packages/docs/docs/player/current-time.md b/packages/docs/docs/player/current-time.md
index eede1939ac..c730588ba3 100644
--- a/packages/docs/docs/player/current-time.md
+++ b/packages/docs/docs/player/current-time.md
@@ -11,6 +11,10 @@ When rendering a [`<Player>`](/docs/player) in your app, special considerations
This is why the [`useCurrentFrame()`](/docs/use-current-frame) hook does not work outside a composition.
+:::warn
+Do not put this hook into the same component in which the `<Player>` is rendered, otherwise you'll see constant re-renders. Instead, put it inside a component that is rendered alongside the Player.
+:::
+
## Synchronizing a component with the Player time
If you want to display a component that synchronizes with the time of the player, for example the cursor of a timeline component or a custom time display, you can use the following hook: