Can't use $store from another JS function #2496
Answered
by
danddanddand
bubnenkoff
asked this question in
1. Help
-
Hello! I am doing very simple oAuth login system that should store it's status in
Next code is done by google examples. Not work only part that set value to
What I am doing wrong?
is print:
So it's see Alpine |
Beta Was this translation helpful? Give feedback.
Answered by
danddanddand
Dec 14, 2021
Replies: 2 comments
-
I think your init function runs before Alpine is ready. How do you trigger it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Should be |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bubnenkoff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be
Alpine.store('auth').isLogined
, notAlpine.store.auth.isLogined