Feature-rich Data Fetching
Transport and protocol agnostic data fetching, revalidation on focus, polling, in-flight de-duplication.
With SWRV, components will get a stream of data updates constantly and automatically. The UI will always be fast and reactive.

vp add swrv<script setup lang="ts">
import useSWRV from "swrv";
const { data, error, isLoading } = useSWRV("/api/user", fetcher);
</script>
<template>
<p v-if="error">Failed to load.</p>
<p v-else-if="isLoading">Loading…</p>
<p v-else>Hello {{ data?.name }}</p>
</template>Based on
Built to match SWR closely while staying idiomatic to Vue.