Episode 48: New in Vue 3: The Composition API

Enjoy the Vue

You might not always need it but composition API might just be the ace card you’ll need one day. Though it isn’t designed to be front of mind, it’s a nifty tool that could pull you out of a code-writing crevasse. We open the show by defining what composition API is before digging up common side effects and mixins. As the show develops, our panel then takes a look at what it means to conflate data with filtering. We then hear about why composition isn’t necessarily a necessity, but why it can become one when you least expect it. Toward the end of the show, we find out what the best ways are to learn composition API, and what can be exposed by the tool. To conclude the episode, we hear what Ari, Ben, and Tessa’s top tech picks are for the week!

Key Points From This Episode:

  • Introducing today’s panel, Ari and Tessa.
  • We kick off the episode by looking at composition API.
  • Side effects and collisions one can expect when using Composition API.
  • How composition API can solve mixin problems.
  • Hear about the process behind conflating data with filtering.
  • Ari tells us about a foot gun, and why they ought to be avoided.
  • The best ways for users to start learning composition API.
  • Find out what is exposed by the composition API.
  • Parting thoughts from our panel.
  • Hear the team’s picks for this week!

Tweetables:

  • “Composition API is the ability to share features across different components in a way that's modular, but in a way that also, you can maintain and track.” — @enjoythevuecast [0:03:23]
  • “In components when you have so many features that it's hard to tell what's talking to what anymore, this is really where people start to want to break things apart. This is where composition API can shine.” — @enjoythevuecast [0:07:28]
  • “Just because you can use a tool, it doesn't mean you should.” — @enjoythevuecast [0:22:26]

Links Mentioned in Today’s Episode:

Audio Player

-
--:--
--:--