Vue: Should init lifecycle hook be renamed to beforeCreate for consistency and increased clarity?

Created on 26 Jun 2016  路  1Comment  路  Source: vuejs/vue

With the new lifecycle hooks, we have natural pairs with beforeMount/mounted and beforeDestroy/destroyed. init and created are the exception. The name init can also cause confusion, because nothing has actually been _initialized_ at that point in the lifecycle.

To resolve both of these issues, I'm thinking about renaming init to beforeCreate. Thoughts?

discussion

Most helpful comment

Implemented.

>All comments

Implemented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paceband picture paceband  路  3Comments

julianxhokaxhiu picture julianxhokaxhiu  路  3Comments

robertleeplummerjr picture robertleeplummerjr  路  3Comments

aviggngyv picture aviggngyv  路  3Comments

loki0609 picture loki0609  路  3Comments