You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the latest version that supports the Blazor render modes, the InteractiveAuto and InteractiveWebAssembly render modes cause content to be rendered twice when an ecomp is used.
Steps to reproduce:
Create a new project with version 0.24.8-beta of Bolero.Templates:
dotnet new bolero-app --name RenderTwiceBug -r InteractiveAuto -m -ni
In that project, create a new component:
namespaceRenderTwiceBug.ClientopenBoleroopenBolero.HtmltypeSomeComponent()=inherit ElmishComponent<string, string>()override_.View model dispatch =
p {
text (sprintf "Refresh page to reproduce. Text: %s" model)}
In Main.fs, replace view with this:
letview model dispatch =
ecomp<SomeComponent,_,_>"Some text"(fun _ ->()){ attr.empty()}
Run the server component, let it load and sit for about 5 seconds
Refresh the page and wait a couple seconds.
Expectation: The paragraph should only be rendered once.
Actual behaviour: The paragraph is rendered a second time after the WebAssembly component had loaded.
Followup:
A workaround is to stick the component into a div:
letview model dispatch =
div { ecomp<SomeComponent,_,_>"Some text"(fun _ ->()){ attr.empty()}}
The text was updated successfully, but these errors were encountered:
When using the latest version that supports the Blazor render modes, the
InteractiveAuto
andInteractiveWebAssembly
render modes cause content to be rendered twice when anecomp
is used.Steps to reproduce:
Main.fs
, replaceview
with this:Expectation: The paragraph should only be rendered once.
Actual behaviour: The paragraph is rendered a second time after the WebAssembly component had loaded.
Followup:
A workaround is to stick the component into a
div
:The text was updated successfully, but these errors were encountered: