Avoid dispatching unneeded socket actions
This commit is contained in:
parent
7fb0cd3e6a
commit
7658e3bde7
3 changed files with 14 additions and 4 deletions
|
@ -152,6 +152,10 @@ export default function handleSocket({
|
|||
handlers[type](data);
|
||||
}
|
||||
|
||||
if (type.charAt(0) === '_') {
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(action);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue