Expose a replayed value$ observable #177
Labels
Comp: Core
Core functionality of ngqp
good first issue
Good for newcomers
Priority: Medium
Users can work without this for now, but this should be fixed soon-ish
Type: Feature
If you want to add something that doesn't exist yet
What's your idea?
QueryParam and QueryParamGroup currently expose a
valueChanges
observable, akin to Angular Forms, which is backed by aSubject<>
. This can create a problem as the first value may be "missed", see #72 and #176. While there is a relatively easy solution to this, it still creates unnecessary boilerplate and can be confusing.Therefore, we should expose a
value$
observable on both which is backed by aReplaySubject<>(1)
. This makes it easier for users to connect ngqp to their logic.The text was updated successfully, but these errors were encountered: