Store attribute is undefined
after using $store.foo.some_method
without parentheses
#1593
Unanswered
peterhijma
asked this question in
1. Help
Replies: 1 comment 1 reply
-
@peterhijma I think the issue here is that Alpine is binding the If you need the event, you can pass it through as: |
Beta Was this translation helpful? Give feedback.
1 reply
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've got some store defined, called
foo
with an attribute calledbar
and an async method calledbazMethod
.I want to use the event inside
bazMethod
, so I don't use parentheses.I can
console.log
the event insidebazMethod
, so that worked. But... attributebar
is nowundefined
! :(Any idea?
Beta Was this translation helpful? Give feedback.
All reactions