MCPcopy
hub / github.com/angular/angularfire / valueChanges

Function valueChanges

src/compat/database/object/create-reference.ts:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 set(data: T) { return query.ref.set(data) as Promise<void>; },
18 remove() { return query.ref.remove() as Promise<void>; },
19 valueChanges<T>() {
20 const snapshotChanges$ = createObjectSnapshotChanges(query, afDatabase.schedulers.outsideAngular)();
21 return snapshotChanges$.pipe(
22 pendingUntilEvent(injector),
23 map(action => action.payload.exists() ? action.payload.val() as T : null)
24 );
25 },
26 };
27}

Callers

nothing calls this directly

Calls 3

existsMethod · 0.65
valMethod · 0.65

Tested by

no test coverage detected