Click in order · Vue.js course · Module 9: Composables & VueUse

CRUD Composable Pattern

Arrange the pattern of a composable managing a data list:

Items to click

  • const loading = ref(false)
  • async function fetchItems() { ... }
  • const items = ref([])
  • return { items, loading, fetchItems }

You can check the correct answer by solving this task in the CodeWorlds game.