vuejs / core-vapor

Vue Vapor is a variant of Vue that offers rendering without the Virtual DOM.
https://vapor-repl.netlify.app
MIT License
1.8k stars 86 forks source link

[Bug] The error generated dynamic `createTextNode` in `v-for` #220

Closed LittleSound closed 3 months ago

LittleSound commented 3 months ago

Description

In some cases, the text in v-for cannot be updated.

Because v-for needs function updateEffect to update Dom, but the dynamic createTextNode is incompatible with this behavior.

I refactored the v-for runtime in PR #217, which will solve this problem.

Playground

Method to reproduce the error: After entering the page, click the change button and observe the changes.