0

On the page, from one endpoint I receive data by different parameters, I can call 4 queries with polling and display new data from them each second. But why do I need to do 4 queries, if from the first it will be clear whether the data has changed or not, and whether I need to make 3 more requests

I know that RTK optimizes the number of requests and requests with the same parameters do not duplicate, but I have a request to an endpoint with different parameters, and I know for sure that if something has changed in one, then it has changed in all the others

How can I improve that part?

  • With only that explanation, without any code examples of whay you mean by "four queries" and "something being clear from the result", nobody will be able to answer that question. – phry Feb 22 '23 at 16:36

0 Answers0