You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a recommendation and discussion for implementing a key parameter for the ID.text() function. The reason why I am recommending that is because there can be performance losses when using for or if statements directly on text nodes because the library's "reconciliation" algorithm may not know which text nodes were added, removed, or shuffled.
Possible changes
Instead of text(value, ...formatters), the text() function could have the following signature:
text(value,key=null, ...formatters)
I hope this advice helps incremental-dom with a performance boost.
The text was updated successfully, but these errors were encountered:
Overview
This is a recommendation and discussion for implementing a
key
parameter for theID.text()
function. The reason why I am recommending that is because there can be performance losses when usingfor
orif
statements directly on text nodes because the library's "reconciliation" algorithm may not know which text nodes were added, removed, or shuffled.Possible changes
Instead of
text(value, ...formatters)
, thetext()
function could have the following signature:I hope this advice helps
incremental-dom
with a performance boost.The text was updated successfully, but these errors were encountered: