title: Redux store.dispatch purpose
body: <p>I'm reviewing a TypeScript function which performs some algorithmic logic and trying to understand where the logic actually happens</p>
  <pre><code>private DoSomeAlgorithmicLogic(nodeIds: any) {
    const obj = CreateObject(nodeIds);
    this.store.dispatch(new GetNodes(obj));
    }
  </code></pre>
  <p><code>CreateObject</code> fills verious attributes of <code>obj</code> and <code>GetNodes</code> is merly this:</p>
  <pre><code>export class GetNodes implements Action {
    readonly type = GET_NODES;
    constructor(public payload: any) {
    }
  }
  </code></pre>
  <p>I tried reading about store &amp; dispatch <a href="https://redux.js.org/understanding/thinking-in-redux/three-principles" rel="nofollow noreferrer">here</a> but not sure I understood the concepts presented.</p>
  <p>What I really need is pointers as how to further investigate/debug this functionality in order to find where the logic happens, but will be happy to get further explenation regarding app state tree and how this line relates to it (especially the parameter that should be passed to <code>dispatch()</code>).</p>