title: Angular NgRx effects, how to pass a parameter?
body: <p>I am trying to send id parameter from the dispatch to the effect, I can't find any example of this case in google.</p>
  <p>Here's the code I already have:</p>
  <p>The component:</p>
  <pre class="lang-ts prettyprint-override"><code> ngOnInit(): void {
     this.packageClass = `type-${this.package.packageType.toLowerCase()}`;
     // I set the payload to the action
     this.store.dispatch(new LoadClusterInfo({id: this.package.id}));
     this.checkStatus();
   }
  </code></pre>
  <p>The effect (where I need to access the value)</p>
  <pre class="lang-ts prettyprint-override"><code>@Effect()
  getClusterInfo = 
    this.actions.ofType(resultActions.Type.LOAD_CLUSTER_INFO)
      .pipe(
        switchMap(() =&gt; {
          let id = 'HARDCODED_ID';
          return this.service.getPackageCluster(id); // Here is where i need the value
        }),
        map((packageCluster: PackageCluster) =&gt; new LoadClusterInfoSuccess(packageCluster)),
        catchError((err: Error) =&gt; of(new LoadClusterInfoError(err))),
      );
  </code></pre>
  <p>And last the action:</p>
  <pre class="lang-ts prettyprint-override"><code>  export class LoadClusterInfo implements Action {
      readonly type = Type.LOAD_CLUSTER_INFO;
      constructor(readonly payload: any) {}
    }
  </code></pre>
  <p>How can I access the id sent by the component (this.package.id) in the effect?</p>