How to dynamically detect if alpine is within a Livewire component? #3034
Unanswered
mikebronner
asked this question in
1. Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing components for my that can be used within and without of Livewire. I get the following error when using the
$wire
object:What is the best way to resolve this? I don't readily see any helpful methods for this in the
Livewire
object.Thanks!
Update: until a proper solution can be found, I have resorted to wrapping the code referencing
$wire
in a try-catch.Update 2: that actually ended up not working. Instead I did the following:
PS:
@entangle
was also breaking (for this and other reasons), which is why I'm using$wire.entangle
.Beta Was this translation helpful? Give feedback.
All reactions