New: Cancel tasks in command queue

This commit is contained in:
Qstick
2018-09-01 23:11:19 -04:00
parent 61387b3d44
commit 9d2fbddc7d
5 changed files with 33 additions and 3 deletions
@@ -6,7 +6,8 @@ function createCommandExecutingSelector(name, contraints = {}) {
return createSelector(
createCommandsSelector(),
(commands) => {
return isCommandExecuting(findCommand(commands, { name, ...contraints }));
const command = findCommand(commands, { name, ...contraints });
return isCommandExecuting(command);
}
);
}