SyneticNL / Hyral

Hypermedia oriented Resource API Layer
MIT License
34 stars 2 forks source link

Vue mixins possible error if you access the computed properties from other computed properties #112

Closed mnugter closed 4 years ago

mnugter commented 5 years ago

The computed properties are called before the created() lifecycle hooks.

Might be an option to switch to the beforeCreate() hook instead of the created() hook. If not the computed property should be able to handle a getter that returns null, now it crashes with a undefined function error.

mnugter commented 5 years ago

beforeCreate() will not work as the data property is not initialized yet.

mnugter commented 5 years ago

PR for collection fix open