useNavigation
Overview
Composition function to provide navigation data for a given configuration.
Signature
useNavigation(userConfig)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| userConfig | object | yes | The user configuration. |
userConfig Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| apps | object[] | The apps to build navigation for. | ||
| customRoutes | object[] | Custom routes to add to the navigation. |
Returns
- An object containing reactive navigation data.
Source
client/lib/use/useNavigation.js:58