Closed pishguy closed 7 months ago
Hi, you use there a microtask, which is run asynchronously later. So when you use this property in a widget, it is not initialized yet. You can do the same without microtask, initWidgetModel is called when the element related to this WidgetModel is already in the element tree. And generally, not relative to Elementary, it is not good for an application performance to use microtask for something like this.
in this code i pasted my simplified
MVVM
which in that i definedwidth
, but in widget i geterror and i'm not sure how can i resolve that