michaelbe812/angular-kit

rx-stateful: change signature so that it is possible to pass argument from a trigger

Closed this issue · 0 comments

this should be possible:

nextPage$$ = new Subject<number>()
smth$ = rxStateful$((arg: number) => this.get(arg), {trigger$: nextPage$$})

tbd
eval if we should reuse refreshTrigger$ or add a new configuration property.
The latter will be more clear (probably) and also for future maintenance it will be easier