.AsObservable() .Subscribe always returns the first post instead of changed,updated post.
See original GitHub issue.Child("Posts")
.AsObservable()
.Subscribe(d => Console.WriteLine(d.Key));
Expecting key of updated post but instead receive the first post as listed on Realtime Database. Anyone else having this behaviour?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Is there any pitfall return subject.asObservable() right after ...
No, observable will always have the value which was passed in next() . Having said that, whenever a subscription is done on the...
Read more >Best practices for using asObservable() in a class : r/Angular2
I got into a discussion with a coworker, because I always return my Subject asObservable, while he says that the return type is...
Read more >Al-Kathiri Khalid | Just another WordPress.com site
First thing first, head over to LCD WIKI and grab a screen of your liking, in ,my case I went with: Raspberry Pi...
Read more >Here - Agents Lab - University of Nottingham
First, even though a system is seen as set <strong>of</strong>interacting components, these components are rather statically connected with ...
Read more >Web Development With Angular And Bootstrap
In our reworking of the original CarHorsepowerComponent class, we've lightened up our component template by moving the logic into a function within the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have several subscriptions working in an app I’m working on. An example of one is shown below. One thing I noticed that’s different with yours is in the .AsObservable() line, there’s no object class designated (see my example below - “Event” is an object Class). I’m not an expert here - just know what I’ve done to get this to work. Also, in my example “returnedEvents” is an IDisposable. _returnedEvents is an ObservableCollection.
Closing the issue due to inactivity. Feel free to re-open