Skip to content

Commit 11696fa

Browse files
docs: Fix heading (#1537)
* Fix heading Fix heading not rendering correctly. * Fix heading Be gone, crazy space.
1 parent 4b85612 commit 11696fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/site/docs/providing-input/passing-parameters-to-components.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ When rendering a `RenderFragment` using the <xref:Bunit.TestContext.Render(Micro
466466
}
467467
```
468468

469-
## Passing query parameters (`SupplyParameterFromQuery`) to a component
469+
## Passing query parameters (`SupplyParameterFromQuery`) to a component
470+
470471
In .NET 6 and later, components can receive parameters from a query string if the parameter is annotated with the `[SupplyParameterFromQuery]` attribute in addition to the `[Parameter]` attribute.
471472

472473
In .NET 8 however, the `[Parameter]` attribute is no longer required, which means a value cannot be passed to the component during testing using the normal methods, e.g. the <xref:Bunit.ComponentParameterCollectionBuilder`1>'s `Add` method, if a component parameter is only annotated with the `[SupplyParameterFromQuery]` attribute. Instead, pass a query string parameters by setting it using the <xref:Bunit.TestDoubles.FakeNavigationManager>.

0 commit comments

Comments
 (0)