2👍
✅
The data function is only ever called once at component creation. If initialData
is not populated at that point in time, then privateData
will always be null. That is why you probably want to use a computed property, or watch the property.
👤Bert
Source:stackexchange.com