Discussion on: Vue's Darkest Day

gerasimvol profile image
Vladimir Gerasimenko

"However using the proposed syntax it's easy to see how big components could have logic broken up into smaller reusable pieces, moved into separate files if necessary"

Nice idea but why not to extend mixins possibilities with this syntax:

import commonLogic from '~/mixins/commonLogic'

export default {
  mixins: {
    foo: commonLogic

  computed: {
    bar () {
      return this.foo.someData
      // Now I use this.foo.someData instead of this.someData
      // So we know where someData came from