How to use graphql-request's batching via the batchRequests() function in redux-saga? #2285
Unanswered
rishavbharti
asked this question in
Q&A
Replies: 1 comment
-
The function call you cited doesn't look quite right. Try yield call([gqlClient, 'batchRequests'], ...args) This function signature is only required if you need the context of gqlClient. If you don't, then yield call(gqlClient.batchRequests, ...args) Should work as well |
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
-
I'm trying to implement batching in redux-saga using graphql-request's
batchRequests()
function but not sure of the syntax.Here's what I've tried
But this doesn't work.
Error screenshot
Using graphql-request v3.7.0 & redux-saga v1.1.3
Can someone tell the correct way to do it?
graphql-request's docs
Beta Was this translation helpful? Give feedback.
All reactions