watch and watchEffect #12684
Unanswered
yanzhen222
asked this question in
Help/Questions
Replies: 2 comments
-
Hi @yanzhen222, It seems like if you actually trying to do something with it, except logging it it works well, see this Vue SFC example. It was summed up nicely here:
Originally posted by @LinusBorg in #9773 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
-
你想要的结果是什么 |
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
-
Help!
When using watch to listen, whether temp or height first reaches the condition, it will send a request. As long as the other changes, even if it does not meet the condition, it will also send a request.
Use watchEffect to listen, when temp first reaches the requirement to send a request, then click height, no matter how much will not send a request, but when height first reaches the requirement to send a request, and then change temp, even if it does not meet the condition, will also send a request, may I ask how to solve these situations
Beta Was this translation helpful? Give feedback.
All reactions