elk/pages/[[server]]/list/[list]/index/index.vue
Joaquín Sánchez 36004a7eba
feat: bump to latest vue 3.4.19 (#2607)
Co-authored-by: patak <matias.capeletto@gmail.com>
2024-02-24 12:24:21 +00:00

18 lines
475 B
Vue

<script setup lang="ts">
definePageMeta({
name: 'list',
})
const params = useRoute().params
const listId = computed(() => params.list as string)
const client = useMastoClient()
const paginator = client.v1.timelines.list.$select(listId.value).list()
const stream = useStreaming(client => client.list.subscribe({ list: listId.value }))
</script>
<template>
<TimelinePaginator v-bind="{ paginator, stream }" :preprocess="reorderedTimeline" context="home" />
</template>