From 3ecbc694aa495ccf8389b26d0cd5853be0695a41 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Mon, 3 Apr 2023 23:05:12 +0200 Subject: [PATCH] swap watch with source --- components/common/CommonPaginator.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index ddc236e7..b07e00c7 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -49,7 +49,10 @@ const nuxtApp = useNuxtApp() const { items, prevItems, update, state, endAnchor, error } = usePaginator(paginator, $$(stream), eventType, preprocess) -const postProcessedItems = computedWithControl(() => postprocess(items.value as U[]), () => items.value) +const postProcessedItems = computedWithControl( + () => items.value, + () => postprocess(items.value as U[]), +) nuxtApp.hook('elk-logo:click', () => { update()