@linkorgs/sync
v0.0.7
Published
同步数据,`sync`函数解决响应数据同步时状态不更新的问题。
Readme
sync
同步数据,sync函数解决响应数据同步时状态不更新的问题。
在 gyron 中负责 dox 状态库的数据同步。
import { useReactive } from '@linkorgs/runtime'
import { sync } from '@linkorgs/sync'
const target = useReactive({})
const source = {
foo: {
bar: {
baz: ['gyron', 'cool'],
},
},
}
sync(target, source)