Skip to content

Variable: getPlayViewContext

API / @xmachines/play-vue / getPlayViewContext

const getPlayViewContext: () => ViewContextValue = usePlayView;

Defined in: packages/play-vue/src/actor-provider-context.ts:55

Access the current ViewContextValue from inside an ActorProvider tree.

Returns the current ViewContextValue inside an ActorProvider tree.

Returns

ViewContextValue

Throws

When the caller is outside an tree or a tree

Example

import { usePlayView } from "@xmachines/play-vue";
const view = usePlayView();
// view.spec, view.handlers, view.registry

Deprecated

Renamed to usePlayView; will be removed in the next major.