Skip to main content

All 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 ...
thinkmmk's user avatar
  • 487
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 ...
HesamSe's user avatar
  • 355
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, ...
hugoboss's user avatar
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 ...
Fadi's user avatar
  • 203
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 ...
Yashwanth somayajula's user avatar
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. ...
Onur Önder's user avatar
  • 1,052
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. ...
Phil's user avatar
  • 7,618
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 ...
Gatonito's user avatar
  • 1,924
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 ...
adrianmcli's user avatar
  • 2,006
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 ...
Mike's user avatar
  • 12.8k
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 ...
Keppy's user avatar
  • 491