Fix Flipper lints #16

Summary: Larger list of fixes. Adding another package to the flipper export is a bit nasty but it unblocks us for now and centralises `remote` access which seems like a win for FAAS.

Reviewed By: mweststrate

Differential Revision: D30785421

fbshipit-source-id: 931297e8566b5d8a213b69ae87d0cda7648b3ed4
This commit is contained in:
Pascal Hartig
2021-09-08 08:43:18 -07:00
committed by Facebook GitHub Bot
parent 262cd6105b
commit 47099cfd31
24 changed files with 293 additions and 201 deletions

View File

@@ -162,7 +162,7 @@ export function plugin(client: PluginClient<Events, Methods>) {
});
imageDataList.push(imageData);
} catch (e) {
console.error(e);
console.error('[fresco] getImage failed:', e);
}
}
@@ -232,10 +232,13 @@ export function plugin(client: PluginClient<Events, Methods>) {
return;
}
debugLog('<- getImage requested for ' + imageId);
client.send('getImage', {imageId}).then((image: ImageData) => {
debugLog('-> getImage ' + imageId + ' returned');
imagePool.get()?._fetchCompleted(image);
});
client
.send('getImage', {imageId})
.then((image: ImageData) => {
debugLog('-> getImage ' + imageId + ' returned');
imagePool.get()?._fetchCompleted(image);
})
.catch((e) => console.error('[fresco] getImage failed:', e));
}
function onImageSelected(selectedImage: ImageId) {
@@ -357,7 +360,8 @@ export function plugin(client: PluginClient<Events, Methods>) {
selectedSurfaces.get(),
coldStartFilter.get(),
);
});
})
.catch((e) => console.error('[fresco] listImages failed:', e));
}
return {