Skip to content

Reactivity adapter for oby

Adapter

  • ✅ Automatic Cleanup
  • ✅ Scope check
bash
  $ npm install signaldb-plugin-oby

Usage

js
import { Collection } from 'signaldb'
import reactivityAdapter from 'signaldb-plugin-oby'
import { effect } from 'oby'

const posts = new Collection({
  reactivity: reactivityAdapter,
})

effect(() => {
  console.log(posts.find({ author: 'John' }).count())
})

Released under the MIT License.