UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

12 lines (9 loc) 377 B
/* eslint-disable import/no-named-as-default-member */ /* eslint-disable import/no-named-as-default */ import type { Unsubscribe } from '../utils/subscriptions' import type Query from '../Query' import type Model from '../Model' export default function subscribeToQuery<Record extends Model>( query: Query<Record>, subscriber: (records: Record[]) => void, ): Unsubscribe