koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
546 stars 155 forks source link

Lazy form loading #195

Closed selobu closed 1 month ago

selobu commented 3 years ago

Is there an option to lazy load a form or just to render the questions as soom as it can be seen by the user? this is necesary when you need to load formularies with a lot of questions, maybe 90 or more also depending on the cellphone specs.

albanm commented 3 years ago

We probably could try wrapping every field in v-lazy.

But I anticipate at least one difficulty: Instantiating the components is necessary to manage the global form validation. I suppose we could exclude from the lazy loading the fields with validation rules, or rewrite the validation functionality so that rules are evaluated directly by vjsf instead of only by the underlying vuetify components.

I am willing to look into this, but I can't make any promise on a date. I am also willing to review a pull request of course.

selobu commented 2 years ago

I guess it's possible by paginating