remove pluginStates on disconnect
Summary: When a client disconnects, we want to remove all plugins states for this client, so the next time the client reconnects the plugins start with an empty state. The main use case for this is when recompiling the app and launching it in the simulator, we don't want to show old network-requests or QPL events. Reviewed By: passy Differential Revision: D10447808 fbshipit-source-id: 5fb3f24ee37f564e8dc00315bff86a2bcd5f65f2
This commit is contained in:
committed by
Facebook Github Bot
parent
a8a512fe44
commit
4f08fd8711
@@ -26,6 +26,10 @@ export default (store: Store, logger: Logger) => {
|
||||
type: 'CLIENT_REMOVED',
|
||||
payload: id,
|
||||
});
|
||||
store.dispatch({
|
||||
type: 'CLEAR_PLUGIN_STATE',
|
||||
payload: id,
|
||||
});
|
||||
});
|
||||
|
||||
server.addListener('error', err => {
|
||||
|
||||
Reference in New Issue
Block a user