<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[is dispatching from a command an antipattern?]]></title><description><![CDATA[<p>I'm thinking about passing dispatcher to a dispatch payload, in order to dispatch from the command. Is this a bad idea?</p>
]]></description><link>http://discuss.colyseus.io/topic/387/is-dispatching-from-a-command-an-antipattern</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 13:05:08 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/387.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Jun 2020 02:12:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to is dispatching from a command an antipattern? on Invalid Date]]></title><description><![CDATA[<p>I'm thinking about passing dispatcher to a dispatch payload, in order to dispatch from the command. Is this a bad idea?</p>
]]></description><link>http://discuss.colyseus.io/post/1267</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1267</guid><dc:creator><![CDATA[nik0kin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to is dispatching from a command an antipattern? on Invalid Date]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/692">@nik0kin</a>, the command dispatcher supports <strong>returning</strong> new commands. Wouldn't it be suitable for your use case?</p>
<p>Example:</p>
<pre><code>execute() {
  // perform your actions...

  return [new AnotherCommand().setPayload({ ... })];
}</code></pre>
]]></description><link>http://discuss.colyseus.io/post/1270</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1270</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to is dispatching from a command an antipattern? on Invalid Date]]></title><description><![CDATA[<p>ooohhh, I overlooked that when looking at the dispatcher typing. Thank you!</p>
]]></description><link>http://discuss.colyseus.io/post/1271</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1271</guid><dc:creator><![CDATA[nik0kin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>