gpt4 book ai didi

Livewire Turbolink Site jumped twice when navigate(Livewire Turbolink网站在导航时跳了两次)

转载 作者:bug小助手 更新时间:2023-10-22 13:51:02 28 4
gpt4 key购买 nike



I have used Laravel 10 with Livewire 3 and Turbolink.

我已经使用Laravel 10与Livewire 3和Turbolink。


When I navigate site from one page to another page, page jumps twice.

当我将网站从一个页面导航到另一个页面时,页面会跳转两次。


I am getting below two error message in console.

我在控制台中收到下面两条错误消息。


Detected multiple instances of Livewire running
Detected multiple instances of Alpine running

检测到Livewire运行的多个实例检测到Alpine运行的多个子实例


Any solution for this would be greatly appreciated.

任何解决方案都将不胜感激。


更多回答

Why you want to use turbolink in Livewire 3?

为什么你想在Livewire 3中使用涡轮链接?

I wan to give effect same as SPA by using turbolink.

我希望通过使用涡轮链接来达到与SPA相同的效果。

You can use navigate() for that, check this livewire.laravel.com/docs/navigate#basic-usage

你可以使用navigation(),查看这个livewire.loravel.com/docs/navigation#基本用法

Thank you for your answer. I removed turbolink and used navigate() and my issue solved. Thanks again.

谢谢你的回答。我删除了涡轮链接并使用导航(),我的问题得到了解决。再次感谢。

优秀答案推荐

I removed turbolink and used navigate() and my issue solved.

我删除了涡轮链接并使用导航(),我的问题得到了解决。


更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com