fix: revert timelines loading optimization

This commit is contained in:
patak 2022-12-23 06:02:13 +01:00
parent 2e5270f453
commit ef4a240800
24 changed files with 87 additions and 146 deletions

View file

@ -1,10 +1,19 @@
<script setup lang="ts">
const { t } = useI18n()
// Default limit is 20 notifications, and servers are normally caped to 30
const paginator = useMasto().notifications.iterate({ limit: 30 })
const { clearNotifications } = useNotifications()
onActivated(clearNotifications)
const stream = await useMasto().stream.streamUser()
useHeadFixed({
title: () => `${t('tab.notifications_all')} | ${t('nav_side.notifications')}`,
})
</script>
<template>
<TimelineNotifications v-if="isMastoInitialised" />
<NotificationPaginator v-bind="{ paginator, stream }" />
</template>

View file

@ -1,10 +1,19 @@
<script setup lang="ts">
const { t } = useI18n()
// Default limit is 20 notifications, and servers are normally caped to 30
const paginator = useMasto().notifications.iterate({ limit: 30, types: ['mention'] })
const { clearNotifications } = useNotifications()
onActivated(clearNotifications)
const stream = await useMasto().stream.streamUser()
useHeadFixed({
title: () => `${t('tab.notifications_mention')} | ${t('nav_side.notifications')}`,
})
</script>
<template>
<TimelineNotifications v-if="isMastoInitialised" />
<NotificationPaginator v-bind="{ paginator, stream }" />
</template>