feat: add opt-in v2 hydration marker support - #7689
Open
Jane Chu (janechu) wants to merge 6 commits into
Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c66c1387-9a1b-4386-8d0f-a115ef5706db
Jane Chu (janechu)
requested review from
Chris Holt (chrisdholt) and
John Kreitlow (radium-v)
as code owners
September 3, 2026 20:45
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c66c1387-9a1b-4386-8d0f-a115ef5706db
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c66c1387-9a1b-4386-8d0f-a115ef5706db
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c66c1387-9a1b-4386-8d0f-a115ef5706db
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c66c1387-9a1b-4386-8d0f-a115ef5706db
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c66c1387-9a1b-4386-8d0f-a115ef5706db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
📖 Description
Adds coordinated, opt-in support for FAST Element 2.x indexed hydration markers while retaining FAST Element 3.x data-free markers as the default.
markers_v2from@microsoft/fast-element/hydration.jsfor use withenableHydration({ markers: markers_v2 }).markers_v2option to@microsoft/fast-buildacross its Rust, WASM, CLI, and configuration APIs.👩💻 Reviewer Notes
The v2 compatibility path is explicitly opt-in on both sides:
{ "markers_v2": true }The client and renderer settings must match. Calls without these options continue using FAST Element 3.x data-free hydration markers.
📑 Test Plan
microsoft-fast-buildRust crate.@microsoft/fast-build, including CLI/config option forwarding.@microsoft/fast-element.✅ Checklist
General
$ npm run changeAgents