I
I
Igor Shumilovsky2016-02-18 16:35:17
Asynchronous programming
Igor Shumilovsky, 2016-02-18 16:35:17

What will happen to the SPA in this case?

Imagine that there is some kind of SPA built on react + redux. And we have a stupid server. What will happen to the SPA if we send a request and while it "wanders" around the server, we go to another page?
For example, we are on the forum. We requested a list of messages in a topic, and while we were waiting for a response, we managed to switch to another topic and even get a list of messages from it. What happens when that first answer finally comes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Izmailov, 2016-02-18
@JiSeven

Well, depending on how the reducer is made.
In short - it will write the data upon receipt, where you specified.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question