Wait for getters update inside an action? #2655
Unanswered
ArianeBouchardConformit
asked this question in
Help and Questions
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.
-
My store is set up like this:
I'm calling
getFinalCurrentApproval
twice. Ideally, I'd like to avoid that repetition. In actionsetCurrentApproval
, I'd like to directly access getterfinalCurrentApproval
with its value updated from the assignment I did on the previous line. Is that possible? For example, some kind of function returning a promise that I can wait for, after which getters are updated?Beta Was this translation helpful? Give feedback.
All reactions