In this lesson, we’ll create a more generic composable for fetching, useFetchWithCache. With this composable, we’re able to fetch data from both of the endpoints that we’ve created.
Through this composable, we’ll also explore how to use TypeScript generics to create a reusable composable that can be used with any type that we need.
This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.
If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.
18 lessons
7 lessons
7 lessons
11 lessons
18 lessons
8 lessons
17 lessons