Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/redact/src/server/bootstrap-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
* main bundle can replay them against un-hydrated subtrees ($RE_q buffer).
*
* Wire format:
* Fallback: <!--$?ID--><div hidden id="B:ID">fallback</div><!--/$-->
* Fallback: <!--$?ID--><div id="B:ID">fallback</div><!--/$-->
* Resolved: emits <div hidden id="S:ID">real</div><script>$RC(ID)</script>
* which splices real into place and rewrites the comment to <!--$ID-->.
* The fallback div is visible (it's the user-visible loading
* state); only the resolved-content staging div is `hidden`
* before $RC moves its children inline.
*
* Client hydration calls $RH(ID, cb) to register a callback invoked once the
* boundary has been revealed (or immediately, if it was already revealed).
Expand Down