question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

arraySplice not exposed on FieldArray fields prop

See original GitHub issue

All 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danielrobcommented, Jul 25, 2017

@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?

0reactions
lock[bot]commented, Apr 2, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >
Bountysource
arraySplice not exposed on FieldArray fields prop.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found