DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsStorefront ArchitectureData Fetching
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Project StructureServer vs ClientData FetchingCaching StrategiesSEO Best PracticesPerformanceCategory URL Structure
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Data Fetching

Patterns for fetching data with the SDK in Next.js.

Updated March 29, 2026

On this page
  • Split Loading Pattern
  • Parallel Fetching
  • Preloading
  • Next Steps

Split Loading Pattern

For product pages, split the data fetch between server and client:

typescript
// Server: Fast initial render with core data
const { product } = await dash.products.getCore("blue-dream")

// Client: Load interactive data on mount
const { options } = await dash.products.getOptions("blue-dream")

Parallel Fetching

typescript
// Fetch multiple resources in parallel
const [{ products }, { categories }, globalData] = await Promise.all([
  dash.products.list({ limit: 12 }),
  dash.categories.getTree(),
  dash.getGlobalData(),
])

Preloading

typescript
// Preload data for likely next navigation
import { preload } from "react"

preload(() => dash.products.get("popular-product"))

Next Steps

  • Caching Strategies — Reducing API calls
  • Performance — Optimization tips
PreviousServer vs ClientNextCaching Strategies

On this page

  • Split Loading Pattern
  • Parallel Fetching
  • Preloading
  • Next Steps