Skip to content

Commit 752ef76

Browse files
authored
Merge pull request #89 from MACscr/fix/register-livewire-component-in-register
Move Livewire component registration from boot() to register()
2 parents 48811d1 + 07a8e09 commit 752ef76

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/QuickCreatePlugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public static function make(): static
6868

6969
public function boot(Panel $panel): void
7070
{
71-
Livewire::component('quick-create-menu', Components\QuickCreateMenu::class);
7271
$this->getResourcesUsing(fn (): array => $panel->getResources());
7372
}
7473

@@ -175,6 +174,8 @@ public function isRounded(): bool
175174

176175
public function register(Panel $panel): void
177176
{
177+
Livewire::component('quick-create-menu', Components\QuickCreateMenu::class);
178+
178179
$panel
179180
->renderHook(
180181
name: $this->getRenderHook(),

0 commit comments

Comments
 (0)