Skip to content

use_scope子输出域无法在主scope清空的时候一起被清空 #581

Answered by wang0618
qqckly asked this question in Q&A
Discussion options

You must be logged in to vote

输出域plus1和plus2并没有包含在plus输出域中,因为在回调函数中使用 with use_scope() 创建的scope是以根scope为父scope的。

所以你需要对回调函数使用 @use_scope('plus') 装饰

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by qqckly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants