Skip to content

Move macro registration from register() to boot()#20

Closed
gcavanunez wants to merge 1 commit intolivewire:mainfrom
gcavanunez:gc/moves-macro-registration-to-boot
Closed

Move macro registration from register() to boot()#20
gcavanunez wants to merge 1 commit intolivewire:mainfrom
gcavanunez:gc/moves-macro-registration-to-boot

Conversation

@gcavanunez
Copy link
Copy Markdown
Collaborator

Fixes icon component registration issue when using Blaze with blade-ui-kit/blade-icons and potential race conditional related to registration with children packages like mallardduck/blade-lucide-icons.

The Problem

BlazeServiceProvider::register() calls $this->app->make('view') to register macros, which resolves the ViewFactory before potentially all icon packages have registered their icon sets. This breaks packages that use callAfterResolving(ViewFactory, callback).

The Fix

Move macro registration from register() to boot(). This ensures all service providers complete their register() phase before ViewFactory is resolved.

Related

@ganyicz
Copy link
Copy Markdown
Collaborator

ganyicz commented Feb 18, 2026

Hey @gcavanunez,

Thanks for the PR, this will be fixed in the next release.

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