Skip to content

Commit

Permalink
Doesn't work without afterResolving()
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Nov 20, 2023
1 parent 20be772 commit 694ce8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SocialstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ public function register(): void
$this->mergeConfigFrom(__DIR__.'/../config/socialstream.php', 'socialstream');

if(config('jetstream.stack') === 'livewire' && class_exists(Livewire::class)) {
Livewire::component('profile.set-password-form', SetPasswordForm::class);
Livewire::component('profile.connected-accounts-form', ConnectedAccountsForm::class);
$this->app->afterResolving(Livewire::class, function () {
Livewire::component('profile.set-password-form', SetPasswordForm::class);
Livewire::component('profile.connected-accounts-form', ConnectedAccountsForm::class);
});
}
}

Expand Down

0 comments on commit 694ce8d

Please sign in to comment.