Vue Composables: How to Craft Reusable Stateful Logic

Watch this course for FREE this weekend only.
Create an account to start watching.

or

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