From 583ae8c6f9b2aa994d5cad4349aa9bc302c64e3a Mon Sep 17 00:00:00 2001 From: gdjohn4s Date: Thu, 1 Jun 2023 21:30:44 +0200 Subject: [PATCH 1/2] fix: now fetch github data on client side rendering --- frontend/services/GithubServices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/services/GithubServices.ts b/frontend/services/GithubServices.ts index d584190..c9b7b52 100644 --- a/frontend/services/GithubServices.ts +++ b/frontend/services/GithubServices.ts @@ -24,7 +24,7 @@ class GithubService { async repoStars(): Promise { const repo: globalThis.Ref = ref(null); - const { data: fetchedData, error } = await useFetch("https://api.github.com/repos/exifly/apivault"); + const { data: fetchedData, error } = await useLazyFetch("https://api.github.com/repos/exifly/apivault"); if (!error) { let num: globalThis.Ref = ref(0); return num.value; From 779bd3aa6e856e000fa387508b296be2fe001be6 Mon Sep 17 00:00:00 2001 From: gdjohn4s Date: Thu, 1 Jun 2023 21:32:46 +0200 Subject: [PATCH 2/2] v2.0.1 --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 0f43bfe..bb8fc95 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-app", - "version": "2.0.0-b2.002", + "version": "2.0.1", "private": true, "scripts": { "build": "nuxt build",