}
}
+ prevScope: EffectScope | undefined
/**
* This should only be called on non-detached scopes
* @internal
*/
on() {
+ this.prevScope = activeEffectScope
activeEffectScope = this
}
* @internal
*/
off() {
- activeEffectScope = this.parent
+ activeEffectScope = this.prevScope
}
stop(fromParent?: boolean) {
const container = document.createElement('li')
append(container, node)
- const update = () => {
+ renderEffect(() => {
const [item, index] = block.s
node.textContent = `${index}. ${item}`
- }
- renderEffect(update)
- return [container, update]
+ })
+
+ renderEffect(() => {
+ const [item, index] = block.s
+ node.textContent = `${index}/ ${item}`
+ })
+ return container
},
(item, index) => index,
)