Too Long; Didn't Read
Stale-while-revalidate data fetching composable for Vue 3 is inspired by React Hooks and SWR. The data is always in sync, even if a new component is added, it immediately has access to the cached data while fetching a fresh copy in the background. Every instance that resolves to the same cache key shares the same reactive object, so if one component triggers a reload, the data is updated everywhere. This is a quite raw implementation and in no way as comprehensive as React Query or SWR.