Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up both batchMiddleware and uploadMiddleware doesn't work #109

Open
DamodarSojka opened this issue Jul 23, 2020 · 1 comment
Open

Comments

@DamodarSojka
Copy link

As in the title.
When the network is being created (not even when requests are issued), having:
batchMiddleware({ batchUrl: requestList => Promise.resolve("/graphql"), batchTimeout: 10, }), uploadMiddleware(),
Results in an error: RelayRequestBatch is not supported.

I understand that batching might not be working when files are uploaded, but if batching is turned off for mutations when why can't it coexists?

@AlicanC
Copy link
Contributor

AlicanC commented Oct 25, 2020

When I wrote uploadMiddleware I didn't have a way to test if it works with batchMiddleware (never used it) so I just made it throw an error. I don't really know if they can work together or not, so feel free to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants