Skip to content

Commit

Permalink
RJS-2828: Fix formatting of Collection.addListener (#6699)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev authored Jun 2, 2024
1 parent b121047 commit da6d48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/realm/src/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export abstract class Collection<
* Add a listener `callback` which will be called when a **live** collection instance changes.
* @param callback - A function to be called when changes occur.
* @param keyPaths - Indicates a lower bound on the changes relevant for the listener. This is a lower bound, since if multiple listeners are added (each with their own `keyPaths`) the union of these key-paths will determine the changes that are considered relevant for all listeners registered on the collection. In other words: A listener might fire more than the key-paths specify, if other listeners with different key-paths are present.
* @note `deletions and `oldModifications` report the indices in the collection before the change happened,
* @note `deletions` and `oldModifications` report the indices in the collection before the change happened,
* while `insertions` and `newModifications` report the indices into the new version of the collection.
* @throws A {@link TypeAssertionError} if `callback` is not a function.
* @example
Expand Down

0 comments on commit da6d48f

Please sign in to comment.