Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
React Router
Arguments passed to a component’s server-side loader.
import { Cache } from '@shopify/hydrogen' import type { WeaverseComponentLoaderArgs } from '@weaverse/hydrogen/react-router' export async function loader({ weaverse, data }: WeaverseComponentLoaderArgs<{ handle: string }>) { const { data: result } = await weaverse.storefront.graphql(COLLECTION_QUERY, { variables: { handle: data.handle }, cache: Cache.short(), }) return { collection: result?.collection } }
Was this page helpful?