SWR reference — stale-while-revalidate, mutations, and infinite scroll. The mental model: serve cache immediately, revalidate in background const { data, isLoading, isValidating } = useSWR<User>("/api/me", fetcher); // isLoading = true only on first ...
Markdown supported · ⌘↵ to post
No responses yet.