Skip to content

Function: getPlayViewContext()

API / @xmachines/play-vue / getPlayViewContext

function getPlayViewContext(): ViewContextValue;

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

Access the current ViewContextValue from inside an ActorProvider tree.

Returns

ViewContextValue

Throws

If called outside an (or ) tree

Example

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