From 49df56d5bd9f901238caa92b08b93c575a60b34b Mon Sep 17 00:00:00 2001 From: Aaron Contreras Date: Tue, 25 Apr 2017 00:54:46 +0200 Subject: [PATCH] Store request controller, rather than its instance. Fix #68 --- src/middleware/query-advanced.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;