Description
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:
- Users (page) - UserTable (component) - EditUserOffCanvas (component)
- Companies (page) - CompanyTable (component) - CompanyOffCanvas (component) - UserTable (component) - EditUserOffCanvas (component)
- 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.