New composables for the Frontic Nuxt Module provide idiomatic Vue 3 patterns for fetching data.
Available composables:
useFronticClient() // General API access with full config
useFronticListing() // Product listings & search results
useFronticSearch() // Full-text search
useFronticPage() // Page data by URL
useFronticBlock() // Block content
Built-in features:
- Reactive refs with loading and error states
- Full TypeScript support - Typed responses based on your schema
- Auto caching - Deduplication and SSR hydration handled automatically
- Auto-imports - Just use them, no imports needed