Skip to content

PlayerSource

Copy as Markdown

PlayerSource<S> = RefObject<Player<S> | null> | Player<S> | null | undefined

Where usePlayerState reads the player: the ref given to <RupaPlayer ref> (followed when it is given another player), or a player as it is (what useRupaPlayer returns); null or undefined for none.

S extends string = string