title: Repopulating state in an NgRx Effect
body: <p>I have JSON that is in my effect that was initially a JSON.stringify(state) and need to add that JSON string back into the state to update the app. (New to Angular and NgRx/Redux).</p>
  
  <p>I have an effect like so (which I'm probably doing wrong):</p>
  
  <pre><code>@Effect({ dispatch: false })
  upState$ = this.actions$.pipe(
     ofType(WorkspaceActionTypes.UpState),
     withLatestFrom(this.store.select(fromSpace.getState)),
     tap(([empty, space]) =&gt; {
          console.log(JSON.stringify(space));
  
         var json = "my json file in string form";
         space = json;
     })
  </code></pre>
  
  <p>);</p>
  
  <p>The json can't go from a string to a type State.</p>
  
  <p>UPDATE:</p>
  
  <p>After looking at the link in the comments, am I supposed to create an effect that calls an action that calls a reducer to update the state? I see this from the link but not sure how to use it yet:</p>
  
  <pre><code>@Effect() 
  createArticle$: Observable&lt;Action&gt; = this.actions$
   .ofType&lt;fromActions.CreateAction&gt;(fromActions.CREATE)
   .map(action =&gt; action.payload)
   .mergeMap(article =&gt; 
       this.articleService.createArticle(article)
       .map(res =&gt; new fromActions.CreateSuccessAction(res)) 
       .catch(error =&gt; of(new fromActions.CreateFailureAction(error)))
   ); 
  </code></pre>