File tree 1 file changed +3
-2
lines changed
packages/database/src/core 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ export function syncTreeApplyTaggedListenComplete(
318
318
*
319
319
* @param eventRegistration - If null, all callbacks are removed.
320
320
* @param cancelError - If a cancelError is provided, appropriate cancel events will be returned.
321
+ * @param skipListenerDedup - When performing a `get()`, we don't add any new listeners, so no
322
+ * deduping needs to take place. This flag allows toggling of that behavior
321
323
* @returns Cancel events, if cancelError was provided.
322
324
*/
323
325
export function syncTreeRemoveEventRegistration (
@@ -392,9 +394,8 @@ export function syncTreeRemoveEventRegistration(
392
394
listener . onComplete
393
395
) ;
394
396
}
395
- } else {
396
- // There's nothing below us, so nothing we need to start listening on
397
397
}
398
+ // Otherwise there's nothing below us, so nothing we need to start listening on
398
399
}
399
400
// If we removed anything and we're not covered by a higher up listen, we need to stop listening on this query
400
401
// The above block has us covered in terms of making sure we're set up on listens lower in the tree.
You can’t perform that action at this time.
0 commit comments