@zag-js/react
Advanced tools
Comparing version 0.78.3 to 0.79.0
@@ -102,4 +102,4 @@ 'use strict'; | ||
const { actions, context, sync: notifyInSync } = options ?? {}; | ||
const lastSnapshot = react.useRef(); | ||
const lastAffected = react.useRef(); | ||
const lastSnapshot = react.useRef(void 0); | ||
const lastAffected = react.useRef(void 0); | ||
const currSnapshot = react.useSyncExternalStore( | ||
@@ -150,3 +150,3 @@ react.useCallback((callback) => store.subscribe(service.state, callback, notifyInSync), [notifyInSync]), | ||
function useConstant(fn) { | ||
const ref = react.useRef(); | ||
const ref = react.useRef(void 0); | ||
if (!ref.current) ref.current = { v: fn() }; | ||
@@ -166,3 +166,3 @@ return ref.current.v; | ||
}); | ||
const snapshotRef = react.useRef(); | ||
const snapshotRef = react.useRef(void 0); | ||
useSafeLayoutEffect(() => { | ||
@@ -169,0 +169,0 @@ const stateInit = hydratedState ?? snapshotRef.current; |
{ | ||
"name": "@zag-js/react", | ||
"version": "0.78.3", | ||
"version": "0.79.0", | ||
"description": "The react wrapper for zag", | ||
@@ -29,13 +29,13 @@ "keywords": [ | ||
"proxy-compare": "3.0.1", | ||
"@zag-js/core": "0.78.3", | ||
"@zag-js/store": "0.78.3", | ||
"@zag-js/types": "0.78.3" | ||
"@zag-js/core": "0.79.0", | ||
"@zag-js/store": "0.79.0", | ||
"@zag-js/types": "0.79.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "18.3.12", | ||
"@types/react-dom": "18.3.1", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"clean-package": "2.2.0", | ||
"@zag-js/utils": "0.78.3" | ||
"@zag-js/utils": "0.79.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
18375
+ Added@zag-js/core@0.79.0(transitive)
+ Added@zag-js/store@0.79.0(transitive)
+ Added@zag-js/types@0.79.0(transitive)
+ Added@zag-js/utils@0.79.0(transitive)
- Removed@zag-js/core@0.78.3(transitive)
- Removed@zag-js/store@0.78.3(transitive)
- Removed@zag-js/types@0.78.3(transitive)
- Removed@zag-js/utils@0.78.3(transitive)
Updated@zag-js/core@0.79.0
Updated@zag-js/store@0.79.0
Updated@zag-js/types@0.79.0