Skip to content

Delegate live updates to view elements - #7

Merged
samuel-williams-shopify merged 2 commits into
mainfrom
add-view-transitions
Sep 16, 2026
Merged

samuel-williams-shopify merged 2 commits into
mainfrom
add-view-transitions

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add synchronous ViewElement#morph(fragment, options) with morphdom as the default implementation
  • delegate Live.update() to any target implementing morph(), while retaining direct morphdom fallback for ordinary elements
  • preserve existing immediate reply and dispatcher behavior
  • document update ownership, nested light-DOM reconciliation, stable ID matching, and Shadow DOM boundaries
  • test custom morph delegation and ordinary-element fallback

Validation

  • npm test
  • npm pack --dry-run
  • git diff --check

Assisted-By: devx/e18eafa2-2efa-46c8-8c94-fb459f0d557f
@samuel-williams-shopify samuel-williams-shopify changed the title Add lifecycle-aware view transitions Delegate live updates to view elements Sep 16, 2026
Assisted-By: devx/e18eafa2-2efa-46c8-8c94-fb459f0d557f
@samuel-williams-shopify
samuel-williams-shopify merged commit 23810ac into main Sep 16, 2026
6 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the add-view-transitions branch September 16, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant