Closed tobiu closed 1 month ago
"real world" test (of course not pushed) => changing the vdom of a button:
{tag: 'button', type: 'button', cn: [
{tag: 'span', cls: ['neo-button-glyph']},
{tag: 'span', cls: ['neo-button-text'], static: true},
{cls: ['neo-button-badge']},
{cls: ['neo-button-ripple-wrapper'], cn: [
{cls: ['neo-button-ripple']}
]}
]}
renders correctly, but can no longer get changed => excluded from delta updates.
<span class="neo-button-text" id="neo-vnode-2">Hello World</span>
=> the DOM will not get the static "attribute".
simply put: flag a node / sub-tree as static to exclude it from
createDeltas()
calls.