V
V
vovashaplin2020-10-02 16:52:24
React
vovashaplin, 2020-10-02 16:52:24

Why are comments shifted from useSWR?

I have posts.
I change/delete/add them using mutations (useSWR).
Each post has comments on its id.
Everything would be fine, but when I add a post, the comments under each post are shifted by 1. Are there any ideas in solving this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question