usePageContent
loadComponent
usePageContent
Composable for fetching and managing CMS-driven tab page content. Handles fetching tabs from a Strapi endpoint, dynamically loading any Vue components referenced in tab data, and keeping the active tab in sync with the URL query parameter ?tab=.
Parameters:
apiUrl: - The full API URL to fetch page content from.filterFn: - Optional function(tabs) => tabsapplied after fetching, before components are loaded. Use this to filter or reorder tabs based on runtime conditions (e.g. user role).options:options.autoMount: - When true,getPageContentis called automatically viaonMounted. Set to false when the calling page needs toawait getPageContent()before performing additional work in its ownonMounted.
Returns:
getPageContent
Nested in: usePageContent
