Log mock errors only for connected devices
Reviewed By: antonk52 Differential Revision: D44367935 fbshipit-source-id: e6de3bf08d9daef9e607b9d24200892f4d04ecd2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
905f5eea0f
commit
ccdc6735c6
@@ -258,7 +258,11 @@ export function plugin(client: PluginClient<Events, Methods>) {
|
|||||||
|
|
||||||
informClientMockChange(routes.get());
|
informClientMockChange(routes.get());
|
||||||
})
|
})
|
||||||
.catch((e) => console.error('[network] Failed to init mocks:', e));
|
.catch((e) => {
|
||||||
|
if (client.device.connected.get()) {
|
||||||
|
console.error('[network] Failed to init mocks:', e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// declare new variable to be called inside the interface
|
// declare new variable to be called inside the interface
|
||||||
networkRouteManager.set(
|
networkRouteManager.set(
|
||||||
|
|||||||
Reference in New Issue
Block a user