From 2953886d9ef9558ead1dd90a687b4ec845ad9812 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 5 Aug 2026 10:36:41 +0100 Subject: [PATCH] Export Inertia's `usePage` composable via `@statamic/cms/inertia` --- packages/cms/src/inertia.js | 1 + resources/js/bootstrap/cms/inertia.js | 1 + resources/js/tests/Package.test.js | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/cms/src/inertia.js b/packages/cms/src/inertia.js index 9fdf4c2148..252f6eef93 100644 --- a/packages/cms/src/inertia.js +++ b/packages/cms/src/inertia.js @@ -6,5 +6,6 @@ export const { toggleArchitecturalBackground, useArchitecturalBackground, useForm, + usePage, usePoll, } = __STATAMIC__.inertia; diff --git a/resources/js/bootstrap/cms/inertia.js b/resources/js/bootstrap/cms/inertia.js index b61bc2641e..de2a217659 100644 --- a/resources/js/bootstrap/cms/inertia.js +++ b/resources/js/bootstrap/cms/inertia.js @@ -3,6 +3,7 @@ export { Link, router, useForm, + usePage, usePoll, } from '@inertiajs/vue3'; diff --git a/resources/js/tests/Package.test.js b/resources/js/tests/Package.test.js index 4da3ead238..7915047a53 100644 --- a/resources/js/tests/Package.test.js +++ b/resources/js/tests/Package.test.js @@ -88,6 +88,7 @@ it('exports inertia', async () => { 'toggleArchitecturalBackground', 'useArchitecturalBackground', 'useForm', + 'usePage', 'usePoll', ];