Query Options Demo
Configure how data is fetched. Change options and either refresh the page or navigate away and back to see the effect.
Options
Error
lazy
Don't block navigation while loading
server
Fetch data during SSR
immediate
Fetch data immediately on mount
clientCache
Cache responses for client-side navigation
const { data: posts, pending, refresh } = usePosts()Fetches:0 SSR|0 client Navigate away and back to test caching
Lazy behavior:Navigation blocks until data readyBrowser shows loading indicator in the tab