Clean up response handling

Reviewed By: priteshrnandgaonkar, fabiomassimo

Differential Revision: D28441183

fbshipit-source-id: 6e47d05145e986279860b49cfff078a905f62689
This commit is contained in:
Michel Weststrate
2021-05-19 06:21:49 -07:00
committed by Facebook GitHub Bot
parent 25ae4a0535
commit 767c6855c8

View File

@@ -151,9 +151,7 @@ export function plugin(client: PluginClient<Events, Methods>) {
});
client.onMessage('newRequest', (data) => {
// TODO: This should be append, but there is currently a bug where requests are send multiple times from the
// device! (Wilde on emulator)
requests.upsert(createRequestFromRequestInfo(data, customColumns.get()));
requests.append(createRequestFromRequestInfo(data, customColumns.get()));
});
function storeResponse(response: ResponseInfo) {