F
F
frostspb2018-04-02 12:05:44
Django
frostspb, 2018-04-02 12:05:44

Why does a React app freeze (lose connection to api) after a while?

Good afternoon. I have a Django + React app. React uses the Django Rest Framework as its API. Noticed this problem. After a long downtime, React seems to lose touch with janga. that is, I click on the button - to update the selection, but I do not receive the results of the selection. If you press the refresh button in the browser, then everything becomes OK.
I took this example as the basis of my application https://github.com/viewflow/cookbook/tree/master/_...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Brake Made, 2018-04-02
@DanilAndreevich

I can assume that the life cycle of the component is over. More precisely, you interacted with him, and then he went into a "sleep".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question