From ceb581f9b83164cd50833374c7dd623b76b5aaa9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 2 Jul 2018 09:47:23 -0400 Subject: [PATCH] Silence warning when no data is dispatched as payload for an action I often use an Alt action for sending events; for example pressXYButton. It's useful because it enforces that all data passes through the stores. --- src/actions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/index.js b/src/actions/index.js index 41e4b8f7..841c4066 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -26,7 +26,7 @@ export default function makeAction(alt, namespace, name, implementation, obj) { } if (invocationResult === undefined) { - utils.warn('An action was called but nothing was dispatched') + // An action was called but nothing was dispatched } return actionResult