satanTime

Results 135 comments of satanTime

Hi there, you can either pass desired selector (which filters items) to `createSelector`, or filter selected items afterwards in `pipe` with `filter` operator.

Here you go, an example how to create a selector just for active users. https://codesandbox.io/s/happy-bas-dhu0fp?file=/src/app/store/reducers.ts line 84+ https://codesandbox.io/s/happy-bas-dhu0fp?file=/src/app/app.component.ts line 28

ah, I think, everything is much simpler here, you can use a pipe operator: https://ngrx-entity-relationship.sudo.eu/api/rxjs/relationships ```ts this.store.pipe( switchMap(state => { return this.store .select(selectProductsByCollection(this.collectionKey)) //

Hi @raalarcon9705, thank you for the feedback. The case looks good so far. Might you debug it with `tap` operator? ```ts loadPostById$ = createEffect(() => this.actions$.pipe( ofType(PostActions.loadPostById), concatMap(({ id })...

Hi @markerikson, I would appreciate if you could find time to review and merge the PR. Thanks.

Thank you for the suggestion. The main problem here is that `apiService.save` doesn't know anything about `flushSuccess`. I think if we play with a helper function, it should work. ```ts...

Agree, that's a good point, that's why I usually go with `MockInstance` or `ngMocks.stubMember` to override spied methods to return what I need regardless how i was spied initially, and...

Could you share that test? I would like to see a real use-case.

Hi @kmjungersen, I think what you want is actually a combination of [auto spy](https://ng-mocks.sudo.eu/extra/auto-spy) and [`MockBuilder` for testing providers](https://ng-mocks.sudo.eu/guides/provider). There is an example based on your code: https://codesandbox.io/s/aged-framework-gse2hs?file=/src/test.spec.ts Please let...