Stream support #709
Unanswered
shiftrtech
asked this question in
General
Replies: 1 comment
-
I think it will not be possible, SWR expects the data to be JSON and JSON (AFAIK) can't be easily streamed (because you need the closing part of an object or array). Also it expected the fetcher to resolve to a single value. What you could do, is to have an endpoint to get the progress of that file and configure SWR to refetch it in an interval. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i cant find examples of using SWR with a api endpoint with response type
stream
, i want to consuming the file parses progress, is this possible?, thanks.Beta Was this translation helpful? Give feedback.
All reactions