This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
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