Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[6.x] Add configuring callback functionality to statamic.js#13811

Open
maurice-ellis wants to merge 1 commit intostatamic:6.x from
maurice-ellis:feature/statamic-configuring-callback
Open

[6.x] Add configuring callback functionality to statamic.js #13811
maurice-ellis wants to merge 1 commit intostatamic:6.x from
maurice-ellis:feature/statamic-configuring-callback

Conversation

@maurice-ellis
Copy link

@maurice-ellis maurice-ellis commented Feb 4, 2026

An additional callback is needed to configure the Vue app before it's mounted, adding globalProperties and plugins, since this cannot be done after the app is mounted.

An additional callback is needed to be able to configure the app before it's mounted to add additional globalProperties and plugins since it cannot be done after the app is mounted.
@maurice-ellis maurice-ellis changed the title (削除) Add configuring callback functionality to statamic.js (削除ここまで) (追記) [6.x] Add configuring callback functionality to statamic.js (追記ここまで) Feb 4, 2026
Copy link
Member

Can you show an example of what you plan to do with this?

Copy link
Author

Yes, @jasonvarga, something like this in my V6 addon I'm working on. I tried looking at the code to see if there was another way and I couldn't find anything. Boot is called before the app is created and booted is called after the app is already mounted.

Statamic.configuring(() => {
 Statamic.$app.use(Plugin);
 Statamic.$app.use(PerfectScrollbarPlugin);
 Object.assign(Statamic.$app.config.globalProperties, {
 $something: something,
 });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /