You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Move hydrationEnabled guard above TSDoc so API Extractor
attaches docs to enableHydration() correctly
- Make enableHydration() merge-safe — hook installs once, subsequent
calls chain their options into the shared HydrationTracker via
mergeOptions()
- Add ExecutionContext, SourceLifetime type exports to styles.js
- Add Notifier type export to arrays.js
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: sites/website/src/docs/3.x/api/fast-element.enablehydration.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ navigationOptions:
15
15
16
16
## enableHydration() function
17
17
18
+
Enables hydration support for prerendered FAST elements.
19
+
18
20
**Signature:**
19
21
20
22
```typescript
@@ -51,7 +53,7 @@ options
51
53
52
54
</td><td>
53
55
54
-
_(Optional)_
56
+
_(Optional)_ Optional callbacks for global hydration events.
55
57
56
58
57
59
</td></tr>
@@ -60,3 +62,22 @@ _(Optional)_
60
62
**Returns:**
61
63
62
64
void
65
+
66
+
## Remarks
67
+
68
+
Call this before any FAST elements connect to the DOM. Hydration logic is not active unless this function is called, keeping `FASTElement` lightweight for client-side-only applications.
69
+
70
+
Safe to call multiple times — the hydration hook is installed once and subsequent calls merge their options into the shared tracker.
0 commit comments