What seems to be the problem:
I have a project that’s organized by domain namespaces. Ideally each domain gets its own Livewire namespace.
Documentation suggests this may be possible by fully specifying the namespace:
@livewire(Package\Livewire\Foo::class)
This works for me on first load. (Confirming that paths etc are correct.) But it fails as soon as it tries to update through ajax.
Steps to Reproduce:
Create a component outside of the configured search path. In my case:
@livewire(\Domain\Client\Http\Livewire\Profile::class)
Load the page (works). Trigger any kind of action (fails).
Are you using the latest version of Livewire:
Yes.
Do you have any screenshots or code examples:
@livewire(\Domain\Client\Http\Livewire\Profile::class)
Works on first page load. But as soon as it updates through ajax, the error modal pops up:
Livewire\Exceptions\ComponentNotFoundException
Unable to find component: [domain.client.http.livewire.profile]