How to update shared value after async operation? #1818
Unanswered
bharatgupta99
asked this question in
Q&A
Replies: 2 comments
-
sharedVal.value = action ? 10 : 20 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can also use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the above code, the value of
shareVal
doesn't change the value ofaction
changes. What is the best way to update value ofsharedVal
after thetimeout
.Beta Was this translation helpful? Give feedback.
All reactions