Handle data that comes only once #2337
Unanswered
IlirBajrami
asked this question in
Q&A
Replies: 0 comments
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'm having a response from a service which comes only once when i upload a file.
I handle it like this in my api route:
file:
/pages/api/job.js
I get the response in my terminal just fine from this line:
console.log("webhook receiveddd:", { transcript, theJobID: jobId });
and in my
index.js
file i try to fetch that request like this (simple):file:
/pages/index.js
*As you might notice that i was using socket before and it works fine but i want to switch to SWR because none of the hosting providers are not supporting sockets.
How do i handle this with SWR?
Beta Was this translation helpful? Give feedback.
All reactions