Not possible to await getters variable #1613
Replies: 1 comment 1 reply
-
I think you need an async declaration on the function. Something like |
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
-
Reproduction
none
Steps to reproduce the bug
I want to await for pinia getters variable to before router execute, here example (image).
middleware
store
Expected behavior
It should work similar to service await
here
Actual behavior
I have login page, when I try to login it will not await the pinia getters variable to access the value first, as a result I'm failing tp login.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions