No chance to access first value of paramGroup on component load #176
Labels
Status: Needs Triage
We need to properly tag this issue
Type: Bug
Something that should work doesn't
StackBlitz: https://stackblitz.com/github/steinsag/angular-ngqp?file=src%2Fapp%2Ffilter-list.component.ts
Belonging GitHub repo: https://github.com/steinsag/angular-ngqp
Steps to reproduce:
Sub-sequent clicks on the buttons or manually entering a different value in quickSearch filter works as expected. If one returns to "home" component, the problem can be reproduced again.
In issue #72, a work-around is described to access the first value of a param group when a component is loaded. Idea is to wrap paramGroup.valueChanges with another observable with a startWith value using something like:
However, this doesn't seem to work, because this.paramGroup.value always returns null on component init.
The text was updated successfully, but these errors were encountered: