Git Product home page Git Product logo

Comments (5)

erikras avatar erikras commented on May 28, 2024 4

Wow. Brilliant observation! I totally overlooked that.

Let me think about it, but without thinking too much about it, I'm leaning towards the redux-form API...

from react-final-form-arrays.

shrynx avatar shrynx commented on May 28, 2024 2

@erikras It seems this been removed from the latest version, any plans for alternate api ?

from react-final-form-arrays.

GavinThompson avatar GavinThompson commented on May 28, 2024

Excellent, thanks for the quick response! Will hold off on any more changes on our end and circle back in the near future. Thanks again! 😄

from react-final-form-arrays.

davidroeca avatar davidroeca commented on May 28, 2024

It would be really nice to have the get functionality. As a work-around, I had success with the Field component; it works with both the entire FieldArray name as well as the field name from a call to fields.map():

<FieldArray name='myArray'>
  {({ fields }) => (
    <React.Fragment>
      {fields.map((name) => (
        <Field name={name} subscription={{value: true}}>
          {({ input: { value: field }}) => (
            <div>{JSON.stringify(field, null, 2)}</div>
          )}
        </Field>
      )}
      <Field name='myArray' subscription={{value: true}}>
        {({ input: { value: fieldValues }}) => (
          <div>{JSON.stringify(fieldValues, null, 2)}</div>
        )}
      </Field>
    </React.Fragment>
  )}
</FieldArray>

from react-final-form-arrays.

erikras avatar erikras commented on May 28, 2024

Published fix in v3.1.1.

from react-final-form-arrays.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.