Skip to main content

Interface: UseMenuOptions

Defined in: composables/react/useMenu.ts:41

Options for useMenu.

Properties

cacheTtlMs?

optional cacheTtlMs?: number

Defined in: composables/react/useMenu.ts:49

Cache TTL in milliseconds. Default: 12h.


depth?

optional depth?: number

Defined in: composables/react/useMenu.ts:47

Nesting depth for the category tree. Default: 3.


graphqlClient

graphqlClient: GraphQLClient

Defined in: composables/react/useMenu.ts:43

GraphQL client used to run the recursive category query.


language?

optional language?: string

Defined in: composables/react/useMenu.ts:45

Language used to resolve category names/slugs. Defaults to 'NL'.