The useStatamicPageData composable is used to access the current cached value of useStatamicPage.
<script setup lang="ts">
const pageData = useStatamicPageData();
</script>
function useStatamicPageData<DataT = any>(): Ref<DataT | undefined>
The data is retrieved from the cache using the
useStatamicCacheKeyanduseNuxtDatacomposables.