arraySplice not exposed on FieldArray fields prop
See original GitHub issueAll of the other array action creators are exposed as bound functions on the fields
prop passed to FieldArray
.
Looking at https://github.com/erikras/redux-form/blob/master/src/createFieldArrayProps.js#L4 it seems like it might be deliberate since the eslint error is suppressed. If that is the case I think it should be documented why.
I need it for the purpose of replacing an item in the field array that is currently edited outside of the rendered form (an update(index, value)
would be a nice option if it’s a common enough use case).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Redux Form: Accessing FieldArray fields prop from outside ...
However I have no access to the prop fields of FieldArray B. That prop is only accessible from within the wrapped component inside...
Read more >Action Creators - Redux Form
ADVANCED USAGE - Inserts and/or removes items from a field array. Works similarly to Array.splice . arraySwap(form:String, field:String, indexA:Number, indexB: ...
Read more >Saved diff wvbidnqd - Diff Checker
expose the modules object (__webpack_modules__) ... arraySplice = exports. ... Field;. var Field = _createAll.Field;. var FieldArray = _createAll.
Read more >redux-form/stats.json - UNPKG
Users/erik/oss/redux-form/src/FieldArray.js", ... prop-types/index.js", ... arraySplice = function arraySplice(form, field, index, removeNum, value) {\n var ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@erikras had a look at the blame history, but you did all the action creators at once. Could you enlighten as to why arraySplice was marked as advanced usage and not handed to FieldArray?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.