Replies: 2 comments 1 reply
-
You can have one fetcher with multiple API calls.
But this seems like a bad Rest API design. You should be able to fetch one endpoint and get a compound document with all three resources. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's not a REST API, it looks a bit like:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a batched API, all the useSwr calls on the same tick are sent to the server in one request. When the request completes, it looks like useSwr calls setState multiple times without unstable_batchedUpdates, so it causes multiple rerenders. Would it be possible to only rerender once when multiple fetchers complete at the same time?
Beta Was this translation helpful? Give feedback.
All reactions