Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] .Net 8 Blazored Auto rendering #568

Open
Shique opened this issue Mar 8, 2024 · 1 comment
Open

[Bug] .Net 8 Blazored Auto rendering #568

Shique opened this issue Mar 8, 2024 · 1 comment
Labels
Bug Something isn't working Needs: Design The issues needs design work before implementing Needs: Investigation The issues needs investigation before implementing

Comments

@Shique
Copy link

Shique commented Mar 8, 2024

Description
Blazored Modal problems with the following configuration - Interactive render mode: Auto, Interactivity location: Per page/component in .Net 8

To Reproduce
Create a new project with the following configuration, add Blazored Modal and try to get it working on the client components.
image

Expected behavior
Blazored Modal working with Blazor Auto rendering mode.

Additional context

If you set interactive mode to Auto where rendering happens on both the server and the client, then the modal is not working. I believe this is due to the fact that the CascadingBlazoredModal is rendered on the server when encapsulating the Routes component. This leaves the client without the CascadingBlazoredModal. I can't find anywhere else where I can wrap the CascadingBlazoredModal to make it cascade to all client components.
I've managed a workaround where I've disabled pre-rendering and moved the Routes component to the client, but this has in effect removed the Auto settings and changed it to WebAssembly.
Is there a way to have this working without moving to WebAssembly only?

@Shique Shique added Bug Something isn't working Triage Issue needs to be triaged labels Mar 8, 2024
@Shique Shique changed the title [Bug] [Bug] .Net 8 Blazored Auto rendering Mar 8, 2024
@chrissainty
Copy link
Member

Thanks for raising this @Shique. I believe you are correct. The new render modes have broken a lot of things for people including how this library works.

Right now I believe I need a redesign of the package to make this scenario work.

@chrissainty chrissainty added Needs: Design The issues needs design work before implementing Needs: Investigation The issues needs investigation before implementing and removed Triage Issue needs to be triaged labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs: Design The issues needs design work before implementing Needs: Investigation The issues needs investigation before implementing
Projects
None yet
Development

No branches or pull requests

2 participants