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

0.2.1 • Public • Published

@zorm-ts/vue

Vue integration for zorm, providing reactivity support.

Installation

npm install @zorm-ts/vue

Usage

To use zorm with Vue, you need to define a reactive database, this will ensure that your components react to changes in your zorm queries. Call useReactiveDatabase() once at the highest level of your application (typically in your main.ts/js file) to properly initialize the reactivity system.

import { useReactiveDatabase } from '@zorm-ts/vue'

// Initialize the Vue reactive database
useReactiveDatabase()

// Use in your Vue components
const users = computed(() => userQuery.query().get()) // Will be reactive!

License

MIT

Package Sidebar

Install

npm i @zorm-ts/vue

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

8.28 kB

Total Files

8

Last publish

Collaborators

  • joris-gallot