From 233b7bcd3c404fd66f1fbaf54423b90d4154cde6 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Thu, 11 Oct 2018 15:19:30 -0700 Subject: [PATCH] Send deinit message even if the plugin runs in background Summary: Put back deinit message and send deinit call even if the plugin is the background one Reviewed By: danielbuechele Differential Revision: D10300165 fbshipit-source-id: ef945282fe628e9196c21b5060a8e464e98bc94c --- src/plugin.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugin.js b/src/plugin.js index 5a67ff781..fb485ff89 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -165,10 +165,6 @@ export class FlipperPlugin extends FlipperBasePlugin< } _teardown() { - if (this.constructor.persistedStateReducer) { - // do not tear down when persistedStateReducer is set - return; - } // automatically unsubscribe subscriptions for (const {method, callback} of this.subscriptions) { this.realClient.unsubscribe(this.constructor.id, method, callback);