GithubHelp home page GithubHelp logo

Comments (10)

fabian-hiller avatar fabian-hiller commented on May 29, 2024

Thanks for the info. As soon as I have some more time, I will have a look at the problem.

from modular-forms.

nzdeep avatar nzdeep commented on May 29, 2024

I'm working around it at the moment by using the deepest path to extract values, but honestly we've got part of the app that at least I've lost complete confidence in that were written weeks ago, users noted strange behavior that we couldnt reliably produce and even when we did we blamed a HMR glitch or something else and carried. Im looking at ripping it all out as I really fail to see how it's usable in it's current state if something as trivial as this repo is breaking it. People aren't putting it through anything serious at the moment I guess. I understand your time is limited and this is FOSS but it may be necessary to attach a warning, no nesting, no nested arrays, no nested objects or something until v2.0. This is going kill any non here's a todo-app reputation I believe.

from modular-forms.

fabian-hiller avatar fabian-hiller commented on May 29, 2024

In practice, I haven't encountered any of these problems yet and as you can see in our playground on the website, the library also works with nested and dynamic forms. With v0.X the library is still in beta. I plan to fix all the bugs and release v1 by the end of this year. Which version of Modular Forms are you using?

from modular-forms.

nzdeep avatar nzdeep commented on May 29, 2024

image

This will pull the latest on the playground I believe, but in our setup we're using 0.19.1 right now as upgrading was first attempted, but same result in 0.17

from modular-forms.

fabian-hiller avatar fabian-hiller commented on May 29, 2024

Thank you! I am now aware of the problems that currently exist with Solid, Preact and React for initial values with dynamic field arrays and getValues. In the long term I will find a solution for this. Unfortunately, I can't help you in the short term. Sorry for that.

from modular-forms.

fabian-hiller avatar fabian-hiller commented on May 29, 2024

Do your problems occur even if the fields are rendered properly, as in this example? You can use this StackBlitz project to try it out.

from modular-forms.

nzdeep avatar nzdeep commented on May 29, 2024

We dont render via Field all properties, but yes it is the same dangerous story https://playground.solidjs.com/anonymous/f71bc588-9a66-4185-b30e-0ef9ee8e2a50

from modular-forms.

fabian-hiller avatar fabian-hiller commented on May 29, 2024

Seems to work for me without problems: https://playground.solidjs.com/anonymous/dd0d0239-9a3d-43bd-b2e0-4ce840b7104d

from modular-forms.

nzdeep avatar nzdeep commented on May 29, 2024

Okay, different approach there, we probably need an interim warning that every field needs to bound (regardless of shouldactive) and nested arrays that binding needs to happen via FieldArray (as x.0.y doesnt work other than reading original value). For us we can probably do this in a portal somewhere off the view I guess or just display:none it.. This is definitely behavior that will lead people to assume it's broke, even if they don't raise the issue, making minimal reproductions is beyond 95% of people I think (statistics made up on the spot 🤣 )

from modular-forms.

fabian-hiller avatar fabian-hiller commented on May 29, 2024

Yes. I will try to solve these problems in the long term. I the version for Qwik there should be no problems in this regard, because the fields are not initialized lazy.

from modular-forms.

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.