Skip to content

Fix full Shadow DOM rebuild on every render #40

@thedhanawada

Description

@thedhanawada

Problem

BaseComponent.render() nukes the entire Shadow DOM tree and rebuilds from scratch on every state change. This causes:

  • Layout thrashing / flicker
  • Loss of focus state
  • Loss of scroll position
  • Poor performance with many events

Fix

Implement incremental/differential rendering. Only update the parts of the DOM that actually changed. Consider a simple virtual DOM diff or targeted DOM patches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions