Skip to content

Function: getActorContext()

API / @xmachines/play-svelte / getActorContext

function getActorContext(): AnyPlayActor;

Defined in: packages/play-svelte/src/actor-context.svelte.ts:38

Get the actor from the nearest ActorProvider ancestor.

Renamed from useActor() to match @json-render/svelte’s get*Context() convention (D-07).

Returns

AnyPlayActor

Throws

if called outside or