Skip to content

Enhanced Navigation does not reopen broken socket connection #55127

Open

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

If WebSocket disconnects, then enhanced navigation goes to a page with another InteractiveServer components, the interactive component does not re-establish a connection

Expected Behavior

If Blazor is navigating to a page with an InteractiveServer component, and there is no WebSocket connection, or the existing WebSocket connection is severed, Enhanced navigation should initialize a new WebSocket connection after navigating

Steps To Reproduce

Create a StreamRendered component with an non-prerendered Interactive island

Disconnect from websockets

Navigate between SSR pages, which work over http
Navigate back to the InteractiveServer(prerender:false) component

  • Will not appear
    You can also try this with prerender:true component
  • Component will appear, without interactivity

I have a private video I can share of this as well.

Exceptions (if any)

No response

.NET Version

8.0.4

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions