Skip to content

JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed. #61791

Open
@Woudjee

Description

@Woudjee

Hi,

I have been getting the following exception since yesterday and after many hours or trying, I have not been able to work out why I am getting this exception:

JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.

Imagine the following structure:

  1. Users (page) - UserTable (component) - EditUserOffCanvas (component)
  2. Companies (page) - CompanyTable (component) - CompanyOffCanvas (component) - UserTable (component) - EditUserOffCanvas (component)
  3. Companies (page) - CompanyTable (component) - CompanyOffCanvas (component) - AddUserOffCanvas (component)

Both 1 and 3 worked the first time without any issues, but no matter what I try, 2 does not work.

I have tried many (stupid) thing. After searching online and not being able to find anything, I asked Gemini, which suggested for me to restructure my code such that my OffCanvas components live in the uppermost parent. This morning, this is what I attempted. All OffCanvas components now live in the uppermost page (Users/Companies). The AddUserOffCanvas still works, but now, EditUserOffcanvas does not work anywhere. Note that I did not change its implementation and that the Edit variant is essentially a copy-paste of the Add variant.

I am not sure what to do. Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions