Skip to main content

Interface: UseMenuOptions

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

Options for useMenu.

Properties

cacheTtlMs?

optional cacheTtlMs?: number

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

Cache TTL in milliseconds. Default: 12h.


depth?

optional depth?: number

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

Nesting depth for the category tree. Default: 3.


graphqlClient

graphqlClient: GraphQLClient

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

GraphQL client used to run the recursive category query.


language?

optional language?: string

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

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