diff --git a/src/middleware/query-advanced.js b/src/middleware/query-advanced.js index 975da10c..9492ca9f 100644 --- a/src/middleware/query-advanced.js +++ b/src/middleware/query-advanced.js @@ -109,7 +109,7 @@ const queryMiddlewareAdvanced = networkAdapter => (queriesSelector, entitiesSele }); const attemptRequest = () => { - dispatch(requestStart(url, body, request.instance, meta, queryKey)); + dispatch(requestStart(url, body, request, meta, queryKey)); attempts += 1; @@ -212,7 +212,7 @@ const queryMiddlewareAdvanced = networkAdapter => (queriesSelector, entitiesSele // Note: only the entities that are included in `optimisticUpdate` will be passed along in the // `mutateStart` action as `optimisticEntities` - dispatch(mutateStart(url, body, request.instance, optimisticEntities, queryKey, meta)); + dispatch(mutateStart(url, body, request, optimisticEntities, queryKey, meta)); request.execute((err, resStatus, resBody, resText, resHeaders) => { let transformed;