Update MkTimeline.vue

This commit is contained in:
syuilo 2025-04-16 15:10:42 +09:00
parent 0a9deb11a5
commit 8e52c5c389
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { computed, watch, onUnmounted, provide, useTemplateRef } from 'vue';
import * as Misskey from 'misskey-js';
import { useInterval } from '@@/js/use-interval.js';
import type { BasicTimelineType } from '@/timelines.js';
import type { Paging } from '@/components/MkPagination.vue';
import MkNotes from '@/components/MkNotes.vue';
@ -72,6 +73,15 @@ const tlComponent = useTemplateRef('tlComponent');
let tlNotesCount = 0;
const POLLING_INTERVAL = 1000 * 10;
useInterval(() => {
// TODO
}, POLLING_INTERVAL, {
immediate: false,
afterMounted: true,
});
function prepend(note) {
if (tlComponent.value == null) return;