Due to lacking docs (guards, resolvers, routing almost not documented) I'm struggling with Akita state management and the use of Angular resolvers which I always used so far with routing (when not using state mgmt).
I'm looking at the following Gist where author does subscribe inside the component and I'm trying to move that to the resolver.
I've tried multiple variations of including the following lines in resolver and doing subscribe but nothing worked:
this.productsService.get().subscribe();
this.loading$ = this.productsQuery.selectLoading();
this.products$ = this.search.valueChanges.pipe(
startWith(''),
switchMap(value => this.productsQuery.selectAll({
filterBy: entity => entity.title.toLowerCase().includes(value)
}))
);