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:
committed by
Facebook GitHub Bot
parent
262cd6105b
commit
47099cfd31
@@ -468,21 +468,27 @@ export function plugin(client: PluginClient<Events, Methods>) {
|
||||
!previousState.outdatedDatabaseList &&
|
||||
newState.outdatedDatabaseList
|
||||
) {
|
||||
client.send('databaseList', {}).then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
});
|
||||
client
|
||||
.send('databaseList', {})
|
||||
.then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
})
|
||||
.catch((e) => console.error('databaseList request failed:', e));
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
client.onConnect(() => {
|
||||
client.send('databaseList', {}).then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
});
|
||||
client
|
||||
.send('databaseList', {})
|
||||
.then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
})
|
||||
.catch((e) => console.error('initial databaseList request failed:', e));
|
||||
const loadedFavoritesJson = localStorage.getItem(
|
||||
FAVORITES_LOCAL_STORAGE_KEY,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user