Description
Dear Mackinnon Buck ,
I hope this message finds you well. I wanted to bring to your attention an issue I encountered while using the component in Blazor interactive server with prerender set to false.
The component is designed to enable per-page JavaScript navigation callbacks in Blazor web applications, allowing for page-specific JavaScript that works seamlessly with enhanced navigation enabled or disabled. However, I noticed that when using the interactive server with prerender set to false, the component does not function correctly.
Here are the steps to reproduce the issue:
- Set up a Blazor web application using the interactive server template then Set Prerender to False.
- Create a new page (e.g., Example.razor) and define the page-specific JavaScript callbacks using the component.
- Make sure prerender is set to false in the server configuration.
- Load the page and observe that the JavaScript callbacks defined in Example.razor.js (such as onLoad, onUpdate, and onDispose) are not properly invoked.
Or you can go back to the example that you reviewed in the "ASP.NET Community Standup - Blazor Experiments + eShop Q&A"(https://www.youtube.com/live/fkDSaIti_KU?t=595&si=BsVBrvA0pS8porfk)
And Change its Render Mode Of Example to interactive server with Prerender False.
I have thoroughly tested this behavior and found that the component works as expected in other configurations, such as Blazor interactive server with prerender set to true or Blazor WebAssembly.
I believe this issue could potentially impact developers who rely on the component for page-specific JavaScript functionality in Blazor interactive server applications with prerender set to false.
I wanted to report this issue and seek your guidance on how to address it. If there are any workarounds or known solutions, I would greatly appreciate your insights. Additionally, I am willing to provide further details or assist in any further investigation required to resolve this issue.
Thank you for your attention to this matter. I look forward to your response.
Best regards,
Waleed Bensumaidea