Update MkTimeline.vue
This commit is contained in:
parent
0a9deb11a5
commit
8e52c5c389
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue