zustand-yjs
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -342,5 +342,3 @@ 'use strict'; | ||
var previousState = awareness.getLocalState(); | ||
awareness.setLocalState(_extends__default['default']({}, previousState, { | ||
newState: newState | ||
})); | ||
awareness.setLocalState(_extends__default['default']({}, previousState, newState)); | ||
}]; | ||
@@ -347,0 +345,0 @@ }; |
@@ -335,5 +335,3 @@ var zustandYjs = (function (exports, create, react, shallow, Y, _extends) { | ||
var previousState = awareness.getLocalState(); | ||
awareness.setLocalState(_extends__default['default']({}, previousState, { | ||
newState: newState | ||
})); | ||
awareness.setLocalState(_extends__default['default']({}, previousState, newState)); | ||
}]; | ||
@@ -340,0 +338,0 @@ }; |
@@ -253,5 +253,3 @@ import create from 'zustand'; | ||
const previousState = awareness.getLocalState(); | ||
awareness.setLocalState(_extends({}, previousState, { | ||
newState | ||
})); | ||
awareness.setLocalState(_extends({}, previousState, newState)); | ||
}]; | ||
@@ -258,0 +256,0 @@ }; |
{ | ||
"name": "zustand-yjs", | ||
"private": false, | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Zustand Stores with Yjs", | ||
@@ -6,0 +6,0 @@ "main": "./index.cjs.js", |
@@ -32,2 +32,2 @@ import * as Y from 'yjs'; | ||
export declare type AwarenessData<T> = T[]; | ||
export declare type AwarenessSetData<T> = (newState: T) => void; | ||
export declare type AwarenessSetData<T> = (newState: Partial<T>) => void; |
38609
910