Skip to content

Function: usePlayView()

API / @xmachines/play-vue / usePlayView

function usePlayView(): ViewContextValue;

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

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