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
vuejs/core@87f69d 在这个提交中,scheduler 函数作为回调函数不会将副作用函数作为参数传递,需要从 this 里面获取
scheduler
this
function mountComponent(vnode, container, anchor) { const componentOptions = vnode.type const { render, data } = componentOptions const state = reactive(data()) effect(() => { console.log(1); const subTree = render.call(state, state) patch(null, subTree, container, anchor) }, { scheduler() { const { fn } = this queueJob(fn) } }) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vuejs/core@87f69d 在这个提交中,
scheduler
函数作为回调函数不会将副作用函数作为参数传递,需要从this
里面获取The text was updated successfully, but these errors were encountered: