Skip to content

Commit

Permalink
Support dispatching when mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
kjeske committed Nov 8, 2024
1 parent 2d5cd44 commit 25bbe53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HydroComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ private async Task<string> RenderOnlineNestedComponent(IPersistentState persiste
IsMount = true;
await MountAsync();
await RenderAsync();
PopulateDispatchers();
return await GenerateComponentHtml(componentId, persistentState, includeScripts: true);
}

Expand All @@ -599,6 +600,7 @@ private async Task<string> RenderStaticComponent(IPersistentState persistentStat
IsMount = true;
await MountAsync();
await RenderAsync();
PopulateDispatchers();
return await GenerateComponentHtml(componentId, persistentState, includeScripts: true);
}

Expand Down

0 comments on commit 25bbe53

Please sign in to comment.