Accept application/x-ndjson #4109
Unanswered
MocicaRazvan
asked this question in
Q&A
Replies: 1 comment
-
You have to fetch data manually and to return final array from fetcher. swr does not make any request and not parse data from request. useSWR(key, async () => {
const response = await fetch("/api/data");
const data = ... // get data from response
return data;
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is there a way to accept application/x-ndjson, and to populate the data in batches, i mean to collect some ndjosns, put them in an array and mutate the data with the current batch
Beta Was this translation helpful? Give feedback.
All reactions