* Subscribe to changes in the collection * @param callback - Function called when items change * @param options - Subscription options including includeInitialState and where filter * @returns Unsubscribe function - Call this to stop listening for changes * @example * // Basic subscri
(
callback: (
changes: Array<ChangeMessage<WithVirtualProps<TOutput, TKey>>>,
) => void,
options: SubscribeChangesOptions<TOutput, TKey> = {},
)
| 934 | * }) |
| 935 | */ |
| 936 | public subscribeChanges( |
| 937 | callback: ( |
| 938 | changes: Array<ChangeMessage<WithVirtualProps<TOutput, TKey>>>, |
| 939 | ) => void, |
| 940 | options: SubscribeChangesOptions<TOutput, TKey> = {}, |
| 941 | ): CollectionSubscription { |
| 942 | return this._changes.subscribeChanges(callback, options) |
| 943 | } |
| 944 | |
| 945 | /** |
| 946 | * Subscribe to a collection event |
no outgoing calls