@object-shake/vue
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published
<script setup>
import { ref, onMounted } from 'vue'
import { shakeMaybeRef } from '@object-shake/vue'

const target = ref({
  a: {
    b: { c: 1, d: 2 },
    e: 3
  },
  f: 4
})

const [proxy, getShaked] = shakeMaybeRef(target)

onMounted(() => {
  console.log(getShaked()) // { a: { b: { c: 1 } }, f: 4 }
})
</script>

<template>
  <div>
    <span>{{ proxy.a.b.c }}</span>
    <span>{{ proxy.f }}</span>
  </div>
</template>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.6.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.6.00
1.5.20
1.5.10
1.5.00
1.4.10
1.4.00
1.3.01
1.2.10
1.2.00
1.2.0-alpha.21
1.2.0-alpha.10
1.1.00
1.0.10
1.0.01
1.0.0-alpha.40
1.0.0-alpha.30
1.0.0-alpha.20

Package Sidebar

Install

npm i @object-shake/vue

Weekly Downloads

3

Version

1.6.0

License

ISC

Unpacked Size

2.51 kB

Total Files

8

Last publish

Collaborators

  • under-moon