We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好作者: 我们知道现在 watch 能够监听 props 和 data中的状态变化, 求对computed监听的实现, 这对业务实现有太大的帮助了。
另外还有一个bug: watch对 wepy-redux中的 @connect 的监听会触发两次 @connect({ stateNum (state) { return state.counter.num }, asyncNum (state) { return state.counter.asyncNum } })
watch = { stateNum (val, oldval) { //这里的代码会被执行两次 console.log(val) } }
The text was updated successfully, but these errors were encountered:
这是两个问题。
Sorry, something went wrong.
computed sync & watch supported - #300 - #318
baaada4
@RORlcl 上面的commit可以让watch能监听到computed的改变
No branches or pull requests
你好作者:
我们知道现在 watch 能够监听 props 和 data中的状态变化, 求对computed监听的实现, 这对业务实现有太大的帮助了。
另外还有一个bug: watch对 wepy-redux中的 @connect 的监听会触发两次
@connect({
stateNum (state) {
return state.counter.num
},
asyncNum (state) {
return state.counter.asyncNum
}
})
watch = {
stateNum (val, oldval) {
//这里的代码会被执行两次
console.log(val)
}
}
The text was updated successfully, but these errors were encountered: