Courses

Vue Composables - Vue Composables - Accept Flexible Component Arguments (Reactive, Getters, or Plain Data)

In this lesson, learn how to make accepting reactive data to your Vue composables as intuitive and flexible as possible. How? Reach for the built-in toRef function and the MaybeRefOrGetter TS type. This allows you to accept, refs, plain data, and getters all in one swoop.

Links