Every line of 'firebase unsubscribe' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
225 unsubscribe(subscriptions) { 226 if (Object.keys(subscriptions).length < 1) { 227 return; 228 } 229 230 const nextListeners = { ...this.listeners }; 231 const nextSubscriptionsState = { ...this.state.subscriptionsState }; 232 233 Object.keys(subscriptions).forEach(key => { 234 const subscription = this.listeners[key]; 235 subscription.unsubscribe(); 236 237 delete nextListeners[key]; 238 delete nextSubscriptionsState[key]; 239 }); 240 241 this.listeners = nextListeners; 242 243 if (this.mounted) { 244 this.setState({ subscriptionsState: nextSubscriptionsState }); 245 } 246 }
20 unsubscribe() { 21 this._unsubscribe(); 22 }
8 subscribe(emit) { 9 10 console.log('test'); 11 12 return true; 13 14 15 }
65 unsubscribe(topic: string): Promise { 66 return new Promise((resolve: SuccessCallback, reject: ErrorCallback) => { 67 this._exec(resolve, reject, 'unsubscribe', [topic]); 68 }); 69 }
332 onUnsubscribed(subKey) { 333 //Default implementation: remove data when it no longer has any subscribers 334 335 if (!this.subscribedRegistry[subKey]) { 336 this.fbStore.delete(subKey); 337 } 338 339 if (this.observableSubscriptionGraph) { 340 this.observableSubscriptionGraph.update(); 341 } 342 }
540 unsubscribeFromNotifications(): Promise { 541 return; 542 }
77 destroy(): void { 78 this.diffSubscription.unsubscribe(); 79 this.diffsSubscription.unsubscribe(); 80 }
92 async function unsubscribe(params) { 93 const { egInstance, subscriptionId } = params 94 return egInstance.unsubscribe({ subscriptionId }) 95 }
54 export function unsubscribeToProfile() { 55 const uid = Fire.shared.uid; 56 if (!uid) return; 57 const ref = firebase.database().ref(`users/${uid}`); 58 ref.off(); 59 }
57 function doUnsubscribe(_ref2, _ref3) { 58 var h = _ref2.h; 59 var args = _ref3.args; 60 61 forEach(function (p) { 62 return p.offAny(h); 63 }, inArgs, args); 64 }