Skip to content

Blazor server SignalR disconnects when a component is included in both a razor page and a layout page #14474

@ACertainDeveloper

Description

@ACertainDeveloper

Describe the bug

Blazor server SignalR disconnects when a component is included in both a razor page and a layout page.

To Reproduce

Steps to reproduce the behavior:

  1. Using this version of ASP.NET Core '3.0'
  2. Create a new asp.net core web application
  3. Add blazor.server.js to layout page.
  4. Add MapBlazorHub() and AddServerSideBlazor() to Startup
  5. Add a component to both the layout page and a razor page

Expected behavior

Blazor components rendered on razor pages should function normally when a component is included in the layout.

Example App

Example App

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions