From 9963deb2a523cb85bf7d820bc506a0aa65193395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leynier=20Guti=C3=A9rrez=20Gonz=C3=A1lez?= Date: Sat, 23 Nov 2024 05:32:15 -0600 Subject: [PATCH 1/3] refactor: update readme and index types to replace 'pending' with 'status' --- readme.md | 14 +++++++------- src/index.ts | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index 6723e1d..0ff0edf 100644 --- a/readme.md +++ b/readme.md @@ -88,10 +88,10 @@ import { ref } from 'vue'; const id = ref(1); // Function without arguments -const { data: dataList, pending: listPending, error: listError } = wrappedService.fetchData(); +const { data: dataList, status: listStatus, error: listError } = wrappedService.fetchData(); // Function with arguments -const { data: itemData, pending: itemPending, error: itemError } = wrappedService.getItem(() => [id.value]); +const { data: itemData, status: itemStatus, error: itemError } = wrappedService.getItem(() => [id.value]); // Reactivity: when id.value changes, itemData updates automatically @@ -99,7 +99,7 @@ const { data: itemData, pending: itemPending, error: itemError } = wrappedServic