Skip to content

Commit

Permalink
fix: states not being passed into routed contents
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Mar 14, 2021
1 parent f23b3de commit 9bfb357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BlazorRouter/BlazorRouter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<Copyright>hez2010</Copyright>
<PackageProjectUrl>https://github.com/hez2010/BlazorRouter</PackageProjectUrl>
<RepositoryUrl>https://github.com/hez2010/BlazorRouter</RepositoryUrl>
<PackageReleaseNotes>Performance improvements and support server prerender</PackageReleaseNotes>
<PackageReleaseNotes>Fix states not being passed into routed contents</PackageReleaseNotes>
<PackageId>Hez2010.BlazorRouter</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Product>BlazorRouter</Product>
<Version>2.1.1</Version>
<Version>2.1.2</Version>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<Company>hez2010</Company>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions BlazorRouter/Switch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ private static int CreateCascadingValue<TValue>(RenderTreeBuilder builder, int s

protected override void BuildRenderTree(RenderTreeBuilder builder)
{
base.BuildRenderTree(builder);
var seq = 0;
seq = CreateCascadingValue(builder, seq, "SwitchInstance", this, ChildContent);
_ = CreateCascadingValue(builder, seq, "RouteParameters", parameters, currentFragment);
Expand Down

0 comments on commit 9bfb357

Please sign in to comment.