Skip to content

Function: getActorContext()

API / @xmachines/play-svelte / getActorContext

function getActorContext(): AnyPlayActor;

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

Returns the actor of the nearest ActorProvider ancestor.

This function had the name useActor() before. The new name follows the get*Context() convention of @xmachines/json-render-svelte (D-07).

Returns

AnyPlayActor

Throws

When the caller is outside or