Skip to content

[6.x] Export Inertia's usePage composable via @statamic/cms/inertia - #15123

Merged
jasonvarga merged 1 commit into
6.xfrom
inertia-use-page
Aug 5, 2026
Merged

[6.x] Export Inertia's usePage composable via @statamic/cms/inertia#15123
jasonvarga merged 1 commit into
6.xfrom
inertia-use-page

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request exports Inertia's usePage composable via @statamic/cms/inertia.

I'm using the usePage composable in Forms Pro to access some of Statamic's shared data (notably the cmsName).

I could export the useStatamicPageProps function instead but thought the generalised method might be more useful for other addon developers (in case you want to access data outwith the _statamic object).

@jasonvarga
jasonvarga merged commit a33e934 into 6.x Aug 5, 2026
23 checks passed
@jasonvarga
jasonvarga deleted the inertia-use-page branch August 5, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants