relay-tools / react-relay-network-modern

Relay Modern Network Layer with middlewares — cache, auth, retry, batch, logger, SSR
MIT License
327 stars 61 forks source link

fix: adding req & res to RRNLRetryMiddlewareError #150

Open njlg opened 2 years ago

njlg commented 2 years ago

After switching to use the retry middleware, I missed being able to have access to the request & response objects.

This changes brings adds that info to RRNLRetryMiddlewareError like RRNLRequestError (https://github.com/relay-tools/react-relay-network-modern/blob/master/src/createRequestError.js#L86-L87)