diff --git a/package.json b/package.json index cec65db..54120a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-and-the-rest", - "version": "5.1.0", + "version": "6.0.0", "description": "Declarative, flexible Redux integration with your RESTful API", "main": "index.js", "scripts": { diff --git a/src/reducers/buildReducersDictionary.js b/src/reducers/buildReducersDictionary.js index 0a50a0c..470d333 100644 --- a/src/reducers/buildReducersDictionary.js +++ b/src/reducers/buildReducersDictionary.js @@ -42,9 +42,6 @@ import getListStatus from '../public-reducers/getListStatus'; import getListPositions from '../public-reducers/getListPositions'; import getListMetadata from '../public-reducers/getListMetadata'; import isString from '../utils/string/isString'; -import without from '../utils/list/without'; -import getItemKey from '../action-creators/helpers/getItemKey'; -import wrapInObject from '../utils/object/wrapInObject'; import removeItemFromListPositions from '../public-reducers/removeItemFromListPositions'; /** diff --git a/src/resources.js b/src/resources.js index 772ec46..f3a1de7 100644 --- a/src/resources.js +++ b/src/resources.js @@ -324,12 +324,10 @@ function resources(resourceOptions, actionOptions = {}) { fetchFunction: resourceDefinition.fetchList, action: actions.fetchList, localOnly, - keyFunction: (_params) => { - return getListKey( + keyFunction: (_params) => getListKey( _params, mergeWithLatestGlobalConfig({ ...resourceOptions, ...actionCreatorOptions }) - ); - }, + ), }, resourcesState, params, actionCreatorOptions );