Skip to content

Commit bf7e515

Browse files
committed
Provide a key as it's required for enhanced nav to work
1 parent c94ee30 commit bf7e515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/test/testassets/Components.TestServer/RazorComponents/Pages/PersistentState/PageWithDeclarativeEnhancedNavigationPersistentComponents.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
{
1717
@if (!string.IsNullOrEmpty(StreamingId))
1818
{
19-
<StreamingComponentWithDeclarativePersistentState @key="@("PersistentComponent")" @rendermode="@_renderMode" StreamingId="@StreamingId" ServerState="@ServerState" />
19+
<StreamingComponentWithDeclarativePersistentState @key="0" @rendermode="@_renderMode" StreamingId="@StreamingId" ServerState="@ServerState" />
2020
}
2121
else
2222
{
23-
<NonStreamingComponentWithDeclarativePersistentState @key="@("NonStreamingComponent")" @rendermode="@_renderMode" ServerState="@ServerState" />
23+
<NonStreamingComponentWithDeclarativePersistentState @key="0" @rendermode="@_renderMode" ServerState="@ServerState" />
2424
}
2525
}
2626
@if (!string.IsNullOrEmpty(StreamingId))

0 commit comments

Comments
 (0)