VueUse and Our Favorite Composables
VueUse might be a library known to many Vue and Nuxt developers - and if not, it should be quickly! With over 200 functions, composables and utilities, it provides a "standard composable kit" which Alex and Michael take a look at in this DejaVue episode. And more than that, they also share their favorite composables that they use or learnt a lot from. Definitely do not miss that out and stay for the spoilers at the end.Enjoy the episode! Chapters(00:00) - Welcome to DejaVue (00:45) - An Introduction to VueUse (01:59) - How often do you use VueUse? (03:50) - Using a library or better to DIY? (05:38) - The Reactivity Layer (06:43) - Docs, Demos and Source Code (09:52) - Composable 1 - useEventListener (13:10) - Composable 2 and 3 - useDebounceFn & useThrottleFn (17:46) - Composable 4 - useLocalStorage (24:00) - Composable 5 - useMagicKeys (29:04) - Util 6 - makeDestructurable (33:18) - Wrapping up around VueUse (34:43) - Nuxt Tips Collection (35:33) - SPOILER!!! Links and ResourcesNuxt Tips Collection from MichaelMastering Nuxt*VueUseVueDemiSlidevis-even packageis-odd packageComposable 1 - useEventListenerComposable 2 - useDebounceFnComposable 3 - useThrottleFnDebounce Vs ThrottleComposable 4 - useLocalStorageLocalstorage example from Alex' WebsiteComposable 5 - useMagicKeysUtil 6 - makeDestructurableBonus - createReusableTemplateLinks marked with * are affiliate links. We get a small commission when you register for the service through our link. This helps us to keep the podcast running. We only include affiliate links for services mentioned in the episode or that we use ourselves.