API de composition calculée Vue

  setup (props) {
    const repositories = ref([])

    const repositoriesMatchingSearchQuery = computed(() => {
      return repositories.value.filter(
        repository => repository.name.includes(searchQuery.value)
      )
    })
    
    return {repositories}
  }
astarrh