Skip to content

fix(fast-element): preserve context on same-source rebinds#7546

Draft
janechu wants to merge 1 commit into
releases/fast-element-v3from
users/janechu/view-context-rebind
Draft

fix(fast-element): preserve context on same-source rebinds#7546
janechu wants to merge 1 commit into
releases/fast-element-v3from
users/janechu/view-context-rebind

Conversation

@janechu
Copy link
Copy Markdown
Collaborator

@janechu janechu commented May 29, 2026

Pull Request

📖 Description

Updates HTMLView and HydrationView so binding the same source with a different execution context refreshes the view context instead of taking the no-op fast path. The existing no-op behavior is preserved when both source and context are unchanged, with focused standard and hydrated view coverage plus design documentation.

📑 Test Plan

  • npm run build:tsc -w @microsoft/fast-element
  • npx playwright test --project=chromium -g "updates context when binding the same source with a new context|updates hydrated view context"
  • npx biome check packages\fast-element\src\templating\view.ts packages\fast-element\src\templating\hydration-view.ts packages\fast-element\src\templating\view.pw.spec.ts
  • npm run checkchange

✅ Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@janechu janechu force-pushed the users/janechu/view-context-rebind branch from 64a7187 to 8a788d3 Compare May 29, 2026 21:49
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