Wire click broken in render hook
How do I make
wire:click
work when rendering a view from my render hook? This is a minimal example:
view:
component:
service provider:
The test()
function is never called. The console doesn't display anything. It seems to me like wire:click
is not doing anything.1 Reply
I'm not sure but have you tried any other name? (not
test()
)
Oh, I think this is the issue:
You need a Blade wrapper to render the Livewire component.
Something like this:
simple-wrapper.blade.php