use-redux-form
Advanced tools
Comparing version 2.0.3 to 2.1.0
{ | ||
"name": "use-redux-form", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "React hook for using Redux store", | ||
@@ -5,0 +5,0 @@ "author": "Tony Jin <jsveron23@gmail.com>", |
@@ -238,2 +238,22 @@ # use-redux-form | ||
exclude: ['selected'], | ||
/** | ||
* Dynamic fieldPath | ||
* (let's say 'someParentState.list' is `fieldPath`) | ||
* @param {Array|Object} fieldState object from `fieldPath` | ||
* @param {Array|Object} state | ||
* @return {String|Number} | ||
*/ | ||
key: (fieldState, state) => { | ||
const idx = fieldState.findIndex((item) => item.id === 2); | ||
// === someParentState.list.1.type | ||
return `${idx}.type`; | ||
}, | ||
/** | ||
* Force transform stop | ||
* @type {Boolean} | ||
*/ | ||
transform: false, | ||
}, | ||
@@ -240,0 +260,0 @@ ); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
503770
5595
265