1.6.0 • Published 2 years ago

@object-shake/vue v1.6.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago
<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>
1.6.0

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.2.0-alpha.2

2 years ago

1.2.0-alpha.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago