MCPcopy Index your code
hub / github.com/NativeScript/firebase / cb

Method cb

apps/demo/src/plugin-demos/firebase-database.ts:62–71  ·  view source on GitHub ↗
(data, key)

Source from the content-addressed store, hash-verified

60 let on = true;
61 const ref = this.database.ref('/issues/141');
62 const cb = (data, key) => {
63 if (!on) {
64 throw new Error('issue 141 Listener: failed to unsubscribe');
65 }
66 console.log('issue141', data.val(), 'previous', key);
67 ref.off('value', cb);
68 on = false;
69
70 ref.set({ name: 'Osei Fortune' });
71 };
72 ref.on('value', cb);
73 ref.set({ name: 'Osei' });
74 }

Callers

nothing calls this directly

Calls 4

logMethod · 0.65
valMethod · 0.65
offMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected