hilla icon indicating copy to clipboard operation
hilla copied to clipboard

[autogrid][autoform] Log runtime error when developer references non-existing property

Open sissbruecker opened this issue 2 years ago • 0 comments

When a developer specifies a property (path) that does not exist, for example in an auto grid's visibleColumns or in an auto form's fieldOptions, then it is just silently ignored. This requires spending time on debugging why a column is not shown, for example due to a typo, and also fails silently if a property is renamed or removed.

While there has been a proposal to allow using model references for specifying properties which would result in a proper compiler error, that would require a lot of time to implement and will likely result in breaking changes. As an alternative that can be implemented with much less effort we could log an error to the browser console if the developer references a non-existing property.

sissbruecker avatar Nov 15 '23 13:11 sissbruecker