Comments (10)
Thanks for the info. As soon as I have some more time, I will have a look at the problem.
from modular-forms.
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.
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.
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.
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.
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.
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.
Seems to work for me without problems: https://playground.solidjs.com/anonymous/dd0d0239-9a3d-43bd-b2e0-4ce840b7104d
from modular-forms.
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.
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)
- define form without defualt values HOT 1
- Next App directory support HOT 2
- sveltekit support? HOT 1
- Qwik: Form not working when schema is declared inside component$ HOT 9
- Qwik: Latest qwik release breaks types HOT 14
- Enhance FieldStore to Return Multiple Errors per Field HOT 2
- Phone Number Input HOT 1
- Allow setting initial form values of a mounted component HOT 2
- Preact: What is the best method to pull values of fields in the form for using in computed() HOT 4
- [Question] Is it possible to have optional fields? HOT 7
- Import error in formAction for qwik HOT 1
- Checkbox works improperly when use modular forms with kobalte HOT 7
- [Question] Is it possible to have custom input without ref? HOT 5
- When useFormStore is in a seperate file, it fails HOT 1
- Select component with number types HOT 3
- Using modular form Fields inside solidjs Dynamic component HOT 1
- Qwik: Vite is trying to externalize packages used in formAction$ HOT 3
- `requestSubmit` is not a function on Safari < 16 HOT 3
- Does this library support React Native? HOT 1
- Internal issue: Cannot read properties of null (reading 'internal') HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modular-forms.