0.0.7 • Published 2 years ago

@linkorgs/sync v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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)