diff --git a/src/actions/index.js b/src/actions/index.js index 0da26d78..c43dd70d 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -13,6 +13,7 @@ export const requestStart = ({ body, meta, networkHandler, queryKey, url }) => { export const requestSuccess = ({ body, + duration, entities, meta, queryKey, @@ -26,6 +27,7 @@ export const requestSuccess = ({ type: actionTypes.REQUEST_SUCCESS, url, body, + duration, status, entities, responseBody, @@ -39,6 +41,7 @@ export const requestSuccess = ({ export const requestFailure = ({ body, + duration, meta, queryKey, responseBody, @@ -51,6 +54,7 @@ export const requestFailure = ({ type: actionTypes.REQUEST_FAILURE, url, body, + duration, status, responseBody, responseText, @@ -75,6 +79,7 @@ export const mutateStart = ({ body, meta, networkHandler, optimisticEntities, qu export const mutateSuccess = ({ body, + duration, entities, meta, queryKey, @@ -88,6 +93,7 @@ export const mutateSuccess = ({ type: actionTypes.MUTATE_SUCCESS, url, body, + duration, status, responseBody, responseText, @@ -101,6 +107,7 @@ export const mutateSuccess = ({ export const mutateFailure = ({ body, + duration, meta, queryKey, responseBody, @@ -114,6 +121,7 @@ export const mutateFailure = ({ type: actionTypes.MUTATE_FAILURE, url, body, + duration, status, responseBody, responseText, diff --git a/src/middleware/query-advanced.js b/src/middleware/query-advanced.js index 5b16a0a1..8e5c0566 100644 --- a/src/middleware/query-advanced.js +++ b/src/middleware/query-advanced.js @@ -127,6 +127,7 @@ const queryMiddlewareAdvanced = networkInterface => ( dispatch( requestFailure({ body, + duration, meta, queryKey, responseBody, @@ -153,6 +154,7 @@ const queryMiddlewareAdvanced = networkInterface => ( dispatch( requestSuccess({ body, + duration, meta, entities: newEntities, queryKey, @@ -251,6 +253,7 @@ const queryMiddlewareAdvanced = networkInterface => ( dispatch( mutateFailure({ body, + duration, meta, queryKey, responseBody, @@ -277,6 +280,7 @@ const queryMiddlewareAdvanced = networkInterface => ( mutateSuccess({ url, body, + duration, status, entities: newEntities, queryKey,