-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make valueChanges a ReplaySubject(1)? #72
Comments
I really want to say we should do this because otherwise something reactive like
combined with the |
OK, maybe it's not as decisive quite yet. The deviation doesn't bother me as much as the semantics of the word "valueChanges". Perhaps having |
This can be achieved using Edit: this contained a mistake, please see the comment further down for the correct version. It's not super pretty, but let's keep it like this for now. |
This does not work (at least not with angular 9.1). stackblitz |
Just in case someone else stumbles upon this thread... The correct work-around is:
|
What's your idea?
We should decide whether the valueChanges observables should be backed by plain Subjects (as-is) or by a ReplaySubject(1).
In the Forms API, it is backed by a Subject, but arguably the initial synchronization from the URL might justify treating it differently in ngqp.
The text was updated successfully, but these errors were encountered: