You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is not mainstream for you, but you might be able to tell me where to look.
Using the AWS Lambda Application template combined with the Blazor Web App SSR (Interaction type None) I get the following behavior.
On the Weather.razor page.
Without any HTMX parts, OnInitializedAsync gets called once.
Just adding .AddHtmx(); to services causes OnInitializedAsync to be called once if used in the URL e.g. https://localhost:64219/weather but called twice if called from the NavMenu.
This has nothing to do with pre-rendering (which the web is full of info on) since this is Interaction type None and calls none of the interactive parts.
I suspect it is to do with the internal rendering of components by Htmxor.
Any suggestions on how to trace it?
The text was updated successfully, but these errors were encountered:
Once you have this, you start the application normally.
I used the components folder from Blazor Web App and in startup, the Blazor Component requirements were added.
Then I added Htmxor Nuget preview.
In startup line 18, is the normal services.AddRazorComponents(); and the Weather.razor page runs with a single call to OnInitializedAsync (breakpoint at Weather.razor line 45).
If you then comment out Startup line 18 and uncomment line 21 and run again, this time the Weather.razor page runs with a two calls to OnInitializedAsync (breakpoint at Weather.razor line 45).
Hi Egil,
I know this is not mainstream for you, but you might be able to tell me where to look.
Using the AWS Lambda Application template combined with the Blazor Web App SSR (Interaction type None) I get the following behavior.
On the Weather.razor page.
This has nothing to do with pre-rendering (which the web is full of info on) since this is Interaction type None and calls none of the interactive parts.
I suspect it is to do with the internal rendering of components by Htmxor.
Any suggestions on how to trace it?
The text was updated successfully, but these errors were encountered: