K
K
KGZVER2020-11-05 08:43:55
Python
KGZVER, 2020-11-05 08:43:55

How to receive changes from the server?

There is an admin panel made in Python, from there you can, for example, create a Task.

How can I get updated data from the front? In my code, after all, the State does not change in order to make a get request to the server through useEffect.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Okhotnikov, 2020-11-05
@tsepen

Here is an example how to work with websocket in react https://github.com/mehmetkose/react-websocket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question