react-relay-network-modern
react-relay-network-modern copied to clipboard
Setting up both batchMiddleware and uploadMiddleware doesn't work
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?
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.