web-component-base icon indicating copy to clipboard operation
web-component-base copied to clipboard

feat: smart diffing

Open ayoayco opened this issue 1 year ago • 0 comments

Currently, it's just very crude: we compare previous dom to incoming dom and if there is change, we wipe the whole children and replace.

We can detect changes and call specific DOM manipulation:

  1. if property = update property / set attribute
  2. if child = call diff on child
  3. if text node = replace text node
  4. etc.

ayoayco avatar Dec 13 '23 07:12 ayoayco