Composables
The site navigation feature relies on the useNavigationTreeByName
composable from @scayle/storefront-nuxt
.
useNavigationTreeByName
useNavigationTreeByName
is used to declaratively fetch a SCAYLE navigation tree by its configured name.
Parameters
options
params
controls the fetching of the navigation tree through SAPI
options
controls the behavior of useAsyncData
and has the same format as this function's parameters
Returns
An AsyncData
object where the data type is NavigationTree
.