persist network plugin state
Summary: This saved the state of the network plugin even when switching between plugins using persistedState. A bug in the Android implementation didn't clear the events that were already sent to the desktop. Reviewed By: jknoxville Differential Revision: D8752098 fbshipit-source-id: 152ec5da83958ad8124686f780d39983cbce563f
This commit is contained in:
committed by
Facebook Github Bot
parent
f5dcaf02a4
commit
c239fcac01
@@ -84,7 +84,11 @@ export class SonarBasePlugin<
|
||||
}
|
||||
}
|
||||
|
||||
export class SonarDevicePlugin<S = *, A = *> extends SonarBasePlugin<S, A> {
|
||||
export class SonarDevicePlugin<S = *, A = *, P = *> extends SonarBasePlugin<
|
||||
S,
|
||||
A,
|
||||
P,
|
||||
> {
|
||||
device: BaseDevice;
|
||||
|
||||
_setup(target: PluginTarget) {
|
||||
@@ -100,7 +104,7 @@ export class SonarDevicePlugin<S = *, A = *> extends SonarBasePlugin<S, A> {
|
||||
}
|
||||
}
|
||||
|
||||
export class SonarPlugin<S = *, A = *> extends SonarBasePlugin<S, A> {
|
||||
export class SonarPlugin<S = *, A = *, P = *> extends SonarBasePlugin<S, A, P> {
|
||||
constructor() {
|
||||
super();
|
||||
this.subscriptions = [];
|
||||
|
||||
Reference in New Issue
Block a user