@zag-js/vue
Advanced tools
Comparing version 0.0.0-dev-20220416152643 to 0.0.0-dev-20220417135151
@@ -33,5 +33,4 @@ var __defProp = Object.defineProperty; | ||
function useMachine(machine, options) { | ||
const { actions, state: hydratedState, context, preserve } = options != null ? options : {}; | ||
const resolvedMachine = typeof machine === "function" ? machine() : preserve ? machine : machine.clone(); | ||
const service = options ? resolvedMachine.withOptions(options) : resolvedMachine; | ||
const { actions, state: hydratedState, context } = options != null ? options : {}; | ||
const service = typeof machine === "function" ? machine() : machine; | ||
const state = (0, import_vue.shallowRef)(service.state); | ||
@@ -38,0 +37,0 @@ const consumableState = (0, import_vue.computed)({ |
{ | ||
"name": "@zag-js/vue", | ||
"version": "0.0.0-dev-20220416152643", | ||
"version": "0.0.0-dev-20220417135151", | ||
"description": "The vue wrapper for zag", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/core": "0.0.0-dev-20220416152643", | ||
"@zag-js/core": "0.0.0-dev-20220417135151", | ||
"valtio": "^1.5.2" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38934
331
+ Added@zag-js/core@0.0.0-dev-20220417135151(transitive)
- Removed@zag-js/core@0.0.0-dev-20220416152643(transitive)