Giter VIP home page Giter VIP logo

Comments (1)

wsmd avatar wsmd commented on June 9, 2024

Hi @oyeanuj,

I was wondering what is the best usage pattern recommended for autosaving forms? Do you think we should use onChange at the form level, parse the field that was updated and submit the results?

The library attempts to provide a great deal of flexibility, which means it's really up to the developer to handle various cases depending on the context. I think your auto-saving use case is a good fit for the form-level onChange. From there, you handle the form state object accordingly.

do you think the library can support submitOnChange as a first class option?

The library does not currently provide any submission functionality (since the main goal of this library is to make it easier to handle the form state itself related to inputs, not the actual form behavior). That said, I'm open to ideas and suggestions! Perhaps you could elaborate more on the submitOnChange suggestion to help better understand the problem it tries to solve.

I'd happily reopen on the issue if this does not answer your question. Let me know if you have any further questions!

from react-use-form-state.

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.