English 中文(简体)
现场救助 To 向和派遣“不存在”错误
原标题:Livewire dispatchTo and dispatchSelf throw "does not exist" errors

I m 试图在父母一方与子女一方之间沟通——“并”;使用活度3的儿童。 最终目标是,一旦父母一方的行动结束,我就希望让儿童部分复读。

I ve tried a couple of things, but I ve come across something strange. I m using Livewire v3.4.6 and I ve tried using $this->dispatchSelf() within the child component, and $this->dispatchTo() in the parent component, and both of them throw Method AppHttpLivewireComponent::dispatchTo/dispatchSelf does not exist errors!

这难道不是用活wi包的吗? 是否需要将<条码>发送/发送自动<>条码>输入使用<条码>的成分? 我没有考虑<条码>发送()工程罚款?

这些文件表明,它来自箱子,因此我确实感到困惑!

问题回答

看看文件,$this->emitTo() 被用作正确用途,但现在看来是:$this->dispad(事件)->to( foo),而不是$this-> Dispad To(事件......)

Livewire 3 has to(> and Self( methods to chain to dispad(>):

$this->dispatch( my-event )->to(AComponent::class);

$this->dispatch( another-event )->self();

在左边,这些方法成为 寄托<>/em>和 发送自动<>。

$wire.dispatchTo("component-name", "my-event")

$wire.dispatchSelf("another-event");




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...