Return to homepage

Comments

Brewster

BREAKING CHANGE WARNING on Episode 13 (Emitting events). Due to changes in Vue 3 (which was not released at the time of the video, the methods used in Episode 13 for creating an AppInput input component won’t work.

Specifically, you can’t use :value=“value” and @input=“$emit(‘input’, $event.target.value). Instead, you need to write the component bindings as :value=“modelValue” and @input=“$emit(‘update:modelValue’, event.target.value), and you need to name the prop modelValue instead of value.

Props to RedfernDev for documenting the change and the solution: https://redfern.dev/articles/base-input-form-element-vuejs-3/

  • 2
Josh

What about mapGetters? https://next.vuex.vuejs.org/guide/getters.html#method-style-access

  • 0
Josh

What about mapState? https://next.vuex.vuejs.org/guide/state.html

  • 0
Marcus

Alex, your knowledge, clear teaching style, and mastery of so many domains... it's so darn valuable. Thanks for the work you put into these series.

  • 2
Zsolt

vuex-composition-helpers doesn't work with NuxtJS. I get this error message: Unexpected token 'export' at import { useGetters } from "vuex-composition-helpers" line as long as it is there. :(

  • 1
Dwayne

This has not convinced me about this new VUE composition API. Seems like more work and polishing should have been put towards its development. All these reactive, ref properties seem unnecessary and this setup functionality somewhat reminds me old JQuery, javascript times. Personally, maybe I will try this to see how it feels like, but as of now I am not convinced to use it, options API sounds way better

  • 4
Alex

At first it's weird to work with and doesn't feel like Vue at all.

However, having worked with it for a while now, particularly with larger components and experimenting with organising code better, it's amazing.

I've got to the point now where I actually enjoying writing exclusively with the Composition API over the Options API. Of course, it won't be for everyone, and for smaller components it's overkill, but I think it's wonderful.

  • 0