bind cannot return an array #43
FredericHeem
started this conversation in
General
Replies: 1 comment
-
Handling reactive state binding for an array of DOM elements requires much more complex handling compared to the current implementation (a diffing algorithm is likely needed). It's at odds with the minimalist design of VanJS project. If the performance of rendering all elements in an array is a major performance concern for your project, you can consider the feature stateful binding, which allows you to implement customized optimization to avoid over-rendering. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any reason why bind cannot return an array of dom element ? If the array in wrapped into a div, the consequence is to re-render all elements in the array, which is in some use cases a problem, especially when the item is animated.
Beta Was this translation helpful? Give feedback.
All reactions