On the inheritance of Vue Component

recently looked at how Vue Component implements inheritance. By browsing the official documentation, I see that Vue Component extensions can be implemented using mixins and extends .

but there is a problem with both methods, and the lifecycle function of the super component is executed. Examples are as follows:

super component created!
component created!

so how do you do that, when both super component and component have lifecycle, only component"s lifecycle function will execute?

Sep.16,2021

default merge strategy for hook functions:

config.optionMergeStrategies</a>

optionMergeStrategies

Vue.config.optionMergeStrategies.created = function (parent, child, vm) {
  return parent;
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf3719-31e67.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf3719-31e67.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?