react-relay-network-modern icon indicating copy to clipboard operation
react-relay-network-modern copied to clipboard

Setting up both batchMiddleware and uploadMiddleware doesn't work

Open DamodarSojka opened this issue 5 years ago • 1 comments

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?

DamodarSojka avatar Jul 23 '20 11:07 DamodarSojka

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.

AlicanC avatar Oct 25 '20 18:10 AlicanC