🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@xstate-ninja/vue

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstate-ninja/vue

XState Ninja integration for Vue

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@xstate-ninja/vue

logo

This package contains XState Ninja integration for Vue.

npm version code style: prettier PRs Welcome

Quick Start

npm install --save @xstate-ninja/vue xstate-ninja @xstate/vue xstate

To track state machines in your project, do this:

<script setup lang="ts">
import { useInterpret } from '@xstate-ninja/vue'

const actor = useInterpret(machine, { devTools: true })
</script>

The useMachine hook is available too:

import { useMachine } from '@xstate-ninja/vue'

const [state, send, service] = useMachine(machine, { devTools: true })

Install the browser extension, open browser devtools (F12) and select the XState panel.

screenshot

Keywords

xstate

FAQs

Package last updated on 18 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts