Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue Composables

Extend Composable Functionality with a Config Argument thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Extend Composable Functionality with a Config Argument

In this video, learn how to provide a config argument / config option to your Vue.js composable. Config options let the developer using your composable tweak it’s behavior based on their needs. Merging the config options is crucial to the composable design, so that the entire config object isn’t required.

Defu is a great tool for merging deeply nested config objects.

Links