Skip to main content
Learn effective patterns for integrating your Starter Kit with the Cloud API.

Server-side data fetching

Fetch data in Server Components for better performance:
app/dashboard/page.tsx
Benefits:
  • Faster page loads (no client-side waterfalls)
  • Better SEO (content rendered on server)
  • Reduced client bundle size
  • Secure (API credentials never exposed to browser)

Client-side mutations

Use Server Actions for data mutations:
app/actions.ts
Use in a form:
components/create-project-form.tsx

Optimistic updates

Update UI immediately, then sync with server:
components/like-button.tsx

Error handling patterns

Handle errors gracefully at multiple levels:
app/actions.ts

Caching strategies

Choose the right caching approach: Static Generation (ISR):
On-Demand Revalidation:
No caching:

Rate limit handling

Implement exponential backoff for rate limits:

Next steps

API Reference

Complete endpoint documentation

Best Practices

Performance optimization guide