I have boilerplate from another contractor and am new to NgRx (and Angular in general - it's my first app). I need to get the store in JSON form output via a text file. I am stuck on the @effect:
@Effect({ dispatch: false })
downloadJSON$ = this.actions$.pipe(
ofType(WorkActionTypes.DownloadJSON),
withLatestFrom(this.store.select(fromApp.getWorkState)),
map(([empty, work]) => {
//stuck on this part of the code
})
);
Can I get some direction/help/code? I am trying to do it without using a library too. Thanks.