All Questions
11 questions
0
votes
0
answers
138
views
How to pick last n number of distinct messages using rxjs from stream
I have been working on a piece in my ReactJs app where I will log all the client errors to the server. The idea I have is as most of the time duplicate client error can come on client side, pick the ...
8
votes
1
answer
7k
views
reactive programming in react
I have a fundamental question about reactive programming in react. As you know, a react component re-renders only if one of its props changes and does not aware of what happened inside the props. But ...
0
votes
1
answer
208
views
Rxjs observable is subscribed twice
I am starting with rxjs library, trying to make requests to an API REST. The problem i got i that the code inside the subscribe is executed two times but is just called once
The observable method, ...
0
votes
1
answer
120
views
How to force component render in React
I am making a simple ajax call to an API that produces data every 5 seconds, the data is received correctly using observables, and the data state is updated as expected.
the problem is: the page is ...
2
votes
0
answers
632
views
Understanding event driven architecture and state management in applications [closed]
Hello guys I have a question regarding state management in applications centered around events.
Let us say take a scenario in which a some one posts a tweet on twitter, so this tweet should be ...
0
votes
2
answers
385
views
Redux-Observable - Cancel next request if it has same parameters with current one, but let it run when they are different
I'm new to reactive programming. Just trying to understand observables and rxjs operators. I have a react-redux application that has a custom middleware to handle cached data and isFetching flags. ...
1
vote
2
answers
1k
views
rxjs - delay function return until a stream value meets a condition and is unsubscribed
I have a method that is triggering a server request. It has access to a stream from the redux-store and should execute a callback as soon as the result of the request is found in the mentioned stream. ...
2
votes
1
answer
1k
views
Observable that delays a random time everytime the stream ends
I need to create a bot that tweets with random intervals, like this:
wait 1 hour
tweets something
wait 5 hours
tweets something
wait 30 minutes
tweets something
wait 10 hours
tweets something
where ...
3
votes
2
answers
2k
views
Making a typing timer in RxJS; Tracking time spent typing
This question is an extension of my previous question that you can find here:
How to use RxJS to display a "user is typing" indicator?
After having successfully been able to track whether ...
0
votes
1
answer
451
views
Angular2 shared observable
Doing some experimentation with Angular2 and curious about how to solve a situation where a service exposes a shared observable. Where one component is responsible for getting the data and another is ...
1
vote
0
answers
243
views
Rx Js - create an observer for $.ajax Complete()
I have an ajax call for an insert operation. I need to update a grid (future there might be many) once the ajax call completed. How to do this using Rx Js.
I have done something with event based but ...