File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/database/src/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ export function syncTreeApplyTaggedListenComplete(
318318 *
319319 * @param eventRegistration - If null, all callbacks are removed.
320320 * @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
321323 * @returns Cancel events, if cancelError was provided.
322324 */
323325export function syncTreeRemoveEventRegistration (
@@ -392,9 +394,8 @@ export function syncTreeRemoveEventRegistration(
392394 listener . onComplete
393395 ) ;
394396 }
395- } else {
396- // There's nothing below us, so nothing we need to start listening on
397397 }
398+ // Otherwise there's nothing below us, so nothing we need to start listening on
398399 }
399400 // If we removed anything and we're not covered by a higher up listen, we need to stop listening on this query
400401 // 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