We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0206636 commit 3bc834cCopy full SHA for 3bc834c
RazorStyle.Example/Program.cs
@@ -18,8 +18,6 @@
18
app.UseHsts();
19
}
20
21
-app.UseHttpsRedirection();
22
-
23
app.UseStaticFiles();
24
25
app.UseRouting();
RazorStyle/Style.cs
@@ -23,6 +23,15 @@ protected override void OnInitialized()
StyleRoot.AddIfMissing(ChildContent, BuildTriggerAnimations);
26
+ protected override void OnAfterRender(bool firstRender)
27
+ {
28
+ if (ChildContent is null)
29
+ return;
30
+
31
+ if (StyleRoot.EnableHotReload)
32
+ StyleRoot.AddIfMissing(ChildContent, BuildTriggerAnimations);
33
+ }
34
35
string BuildTriggerAnimations()
36
{
37
var builder = new RenderTreeBuilder();
0 commit comments