Git Product home page Git Product logo

Comments (7)

tn3rb avatar tn3rb commented on June 8, 2024

ohhhh... I may have figured it out...

from react-final-form-arrays.

tn3rb avatar tn3rb commented on June 8, 2024

yup false alarm, you got lucky this time ;)

thanks again for all of the awesome work

from react-final-form-arrays.

toshiSat avatar toshiSat commented on June 8, 2024

Will you post your solution so people who are finding this knows what to do?

from react-final-form-arrays.

Tom5om avatar Tom5om commented on June 8, 2024

Yes @tn3rb your solution would have been great as I am running into the same issue

from react-final-form-arrays.

Tom5om avatar Tom5om commented on June 8, 2024

I think the problem was to call ArrayMutators.push directly, when you do it like this:

 <Form
                    initialValues={values}
                    onSubmit={this.handleSubmit}
                    mutators={{
                        // potentially other mutators could be merged here
                        ...arrayMutators
                    }}
                >
                    {({
                        handleSubmit,
                        form: {
                            mutators: { push }
                        }
                    }) => {
                        return (
                            <form
                                id="contact-form"
                                onSubmit={handleSubmit}
                                ref={f => (this.formRef = f)}
                            >

it solves it

from react-final-form-arrays.

pratham0182 avatar pratham0182 commented on June 8, 2024

I am still facing this error can anyone help me out

from react-final-form-arrays.

tn3rb avatar tn3rb commented on June 8, 2024

my apologies to everyone for not posting my solution.
I don't even remember what it was exactly but I do know that it had nothing to do with React Final Form and so would not have been relevant to anyone else's situation.

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.