[Live] Unfriendly JS error if you forget to expose a LiveProp then use it
Relates somewhat to #425, where this system may be changed.
Pretty simple:
class MyComponent
{
#[LiveProp()]
public Invoice $invoice;
}
Then in the template:
<input data-model="invoice.customerName">
This results in an ugly JS error:
Cannot read properties of null (reading 'customerName')
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Friendly ping? Should this still be open? I will close if I don't hear anything.
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Could I get a reply or should I close this?
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
Fixed by #1210,
live_controller-1e20d818103e24e81a35d46c3e98145c.js:2025 Uncaught Error: Invalid model name "dumbDto.name". at Component.set (live_controller-1e20d818103e24e81a35d46c3e98145c.js:2025:19) at t.updateModelFromElementEvent (live_controller-1e20d818103e24e81a35d46c3e98145c.js:3156:24) at t.handleInputEvent (live_controller-1e20d818103e24e81a35d46c3e98145c.js:3105:14) at HTMLDivElement.callback (live_controller-1e20d818103e24e81a35d46c3e98145c.js:2925:57)