fast
fast copied to clipboard
fix: Add "defer-and-hydrate" and "hydrate" as templateOptions
🐛 Bug Report
Using defineAsync() bypasses the fromCustomElement in FASTElement where this templateOption was being used. This should instead be interpreted by the TemplateElement in @microsoft/fast-html.
The following options should work:
- Passing
"defer-and-hydrate"should adddefer-hydrationandneeds-hydrationboolean attributes before defining the custom element with the custom element registry - Passing
"hydrate"should addneeds-hydrationattribute before defining the custom element with the custom element registry - Passing nothing should cause the ElementController to be used instead