chore: simplify the call
This commit is contained in:
@@ -31,10 +31,8 @@ let timeoutId: ReturnType<typeof window.setTimeout> | null = null;
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (props.block.note == null) return;
|
if (props.block.note == null) return;
|
||||||
timeoutId = window.setTimeout(() => {
|
timeoutId = window.setTimeout(async () => {
|
||||||
retryOnThrottled(() => misskeyApi('notes/show', { noteId: props.block.note })).then(result => {
|
note.value = await retryOnThrottled(() => misskeyApi('notes/show', { noteId: props.block.note }));
|
||||||
note.value = result;
|
|
||||||
});
|
|
||||||
}, 500 * props.index); // rate limit is 2 reqs per sec
|
}, 500 * props.index); // rate limit is 2 reqs per sec
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user