[PR #2] [MERGED] fix: use use-fetch to avoid to refetch during hydration #3

Closed
opened 2025-12-01 17:04:26 +01:00 by arthur · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ArthurDanjou/artsite/pull/2
Author: @Barbapapazes
Created: 6/23/2024
Status: Merged
Merged: 6/23/2024
Merged by: @ArthurDanjou

Base: masterHead: fix/stats


📝 Commits (1)

  • 7678c95 fix: use use-fetch to avoid to refetch during hydration

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 app/components/content/Stats.vue (+3 -1)

📄 Description

Hello 👋,

This PR change the usage of $fetch to useFetch to avoid both a client-side and server-side fetch.

You can learn more with this link: https://nuxt.com/docs/getting-started/data-fetching#network-calls-duplication


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ArthurDanjou/artsite/pull/2 **Author:** [@Barbapapazes](https://github.com/Barbapapazes) **Created:** 6/23/2024 **Status:** ✅ Merged **Merged:** 6/23/2024 **Merged by:** [@ArthurDanjou](https://github.com/ArthurDanjou) **Base:** `master` ← **Head:** `fix/stats` --- ### 📝 Commits (1) - [`7678c95`](https://github.com/ArthurDanjou/artsite/commit/7678c959a2d09aafc8b6e84aea41b409c2e21970) fix: use use-fetch to avoid to refetch during hydration ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/components/content/Stats.vue` (+3 -1) </details> ### 📄 Description Hello 👋, This PR change the usage of `$fetch` to `useFetch` to avoid both a client-side and server-side fetch. You can learn more with this link: https://nuxt.com/docs/getting-started/data-fetching#network-calls-duplication --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
arthur added the pull-request label 2025-12-01 17:04:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arthur/artsite#3