Passenger
Calling `callMountedFormComponentAction` with arguments does not not pass it into the
To give a bit of context.
I have an Action class that opens a Modal. (This Action class is being used in the hintActions of a repeater field)
I render a custom livewire component inside the action's modal by doing
modalContent(fn ($record) => new HtmlString(Blade::render("@livewire('custom-component')")))
Inside the Livewire custom-component, i'm able to call
$wire.$parent.callMountedFormComponentAction({param: [1,2,3]})
And this calls the mountedAction like i expected
->action(function (Set $set, $component, $arguments)
However the injected $arguments
is always an empty array.
I expected the array to contain an element with key param like
['param' => [1,2,3]]
Any hint as to what i might be doing wrong.12 replies