Is there an existing issue for this? I have searched the existing issues Is your feature request related to a problem? Please describe the problem.In the latest Blazor United in .NET 8, the default enabling of "data-enhance-nav" for all navigation has led to several issues. Specifically: With EF Core, the "Cannot Access Disposed Object Exception" from Data Context occurs frequently. This issue is resolved by disabling "data-enhance-nav" in the hyperlink. When "data-enhance-nav" is enabled, JavaScript fails to invoke on the target page. To address these problems, I had to manually set data-enhance-nav="false" for every hyperlink. This process is not only tedious and inefficient but also challenging when hyperlinks are generated from components where I can't set "data-enhance-nav" to "False." Particularly, those transitioning old ASP.NET Core applications to Blazor will encounter numerous unexpected server and client-side exceptions. After extensive troubleshooting, I realized that these issues stemmed from the "Enhanced Navigation" feature. Describe the solution you'd likeAllowing us to disable "data-enhance-nav" globally for the entire site would be immensely helpful. Please consider implementing a way to deactivate Enhanced Navigation at the App, Page, and Component levels. Ideally, this feature should default to 'Off,' with the option for users to enable it as needed. Since the ASP.NET Team activated this feature by default, providing a straightforward method to turn it off would be greatly appreciated. Additional contextNo response (责任编辑:) |