Skip to content

Conversation

@gcavanunez
Copy link
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

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.

1 participant