Avoid dispatching unneeded socket actions

This commit is contained in:
Ken-Håvard Lieng 2018-10-16 01:04:49 +02:00
parent 7fb0cd3e6a
commit 7658e3bde7
3 changed files with 14 additions and 4 deletions

View file

@ -152,6 +152,10 @@ export default function handleSocket({
handlers[type](data);
}
if (type.charAt(0) === '_') {
return;
}
dispatch(action);
});
}