Open ggecy opened 1 year ago
Not sure if this matters, but that documentation page might be outdated, as the currently maintained one is here: https://hilla.dev/docs/lit/guides/forms/reference
We have an issue in our deployment script that it does not delete the previous deployment before publishing a new one. It only overwrites existing files (and creates new ones). I’ll ping our admin again about this. This issue has been resolved.
Not sure if this matters, but that documentation page might be outdated, as the currently maintained one is here: https://hilla.dev/docs/lit/guides/forms/reference
We have an issue in our deployment script that it does not delete the previous deployment before publishing a new one. It only overwrites existing files (and creates new ones). I’ll ping our admin again about this.
Well, even this one uses the wrong examples of model classes
readonly idString = new StringModel(this, 'idString');
Sounds like a bug we should fix. Let us add support for fields on par with getters.
Note: with fields it is impossible to define a self-referencing model. That's why we moved to using getters in generated models.
Sounds like a bug we should fix. Let us add support for fields on par with getters.
Note: with fields it is impossible to define a self-referencing model. That's why we moved to using getters in generated models.
It's not a problem to use the getter notation (maybe a little bit more user friendly notation would be welcome), just that the documentation has old examples which no longer work properly.
Vote to prioritize: add a 👍 reaction to help the community and maintainers prioritize this issue.
On https://hilla.dev/docs/data-binding/reference page and others in same section you define model properties in examples as readonly properties, e.g.:
If the model properties are not defined as getters using this[_getPropertyModel]() inside, e.g.:
then @hilla/form validation no longer works correctly since it explicitly checks for getters in model. Btw this is a breaking change which was introduced in minor version update in @hilla/form which is wrong...
I know that your intent is to generate the models from endpoints, but on our projects we cannot use the hilla server side endpoints because of incompatible security model so we have to define the client models manually and the documentation was very misleading in this case.