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

[regession/8.0.0-preview.7.8842] MAUI Blazor Hybrid rerenders whole layout after each navigation #16661

Closed
orosbogdan opened this issue Aug 10, 2023 · 1 comment
Assignees
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView Blazor ❤️ MAUI Issues in MAUI functionality that affect Blazor, but are not bugs in Blazor itself i/regression This issue described a confirmed regression on a currently supported version platform/windows 🪟 s/duplicate 2️⃣ This issue or pull request already exists t/bug Something isn't working

Comments

@orosbogdan
Copy link

orosbogdan commented Aug 10, 2023

Description

Since .NET 8 preview 7, the whole layout would refresh when a navigating to another page, prompting the "Loading..." each time.

Steps to Reproduce

  1. Create new MAUI Blazor Hybrid project in .net 8 preview 7.
  2. Navigate back and forth between counter and home page.
  3. Observe "Loading..." appearing /flashing after each nagivation.

In previous version, the container / MainLayout.razor would not re-render, just the children components that change.

This gets more severe/noticeable the longer a component takes to load, because the MainLayout is disappearing/re-appearing.

Link to public reproduction project repository

No response

Version with bug

8.0.0-preview.7.8842

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.0-preview.6.8686

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

No

Relevant log output

-
@orosbogdan orosbogdan added the t/bug Something isn't working label Aug 10, 2023
@jsuarezruiz jsuarezruiz added platform/windows 🪟 area-blazor Blazor Hybrid / Desktop, BlazorWebView labels Aug 10, 2023
@samhouts samhouts added i/regression This issue described a confirmed regression on a currently supported version Blazor ❤️ MAUI Issues in MAUI functionality that affect Blazor, but are not bugs in Blazor itself labels Aug 10, 2023
@samhouts samhouts changed the title MAUI Blazor Hybrid rerenders whole layout after each navigation .NET 8 Preview 7 [regession/8.0.0-preview.7.8842] MAUI Blazor Hybrid rerenders whole layout after each navigation Aug 10, 2023
@Eilon
Copy link
Member

Eilon commented Aug 10, 2023

This is a symptom of this issue: #16609

Can you try the workaround at #16609 (comment) and let us know if that fixes it?

@Eilon Eilon closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2023
@Eilon Eilon added the s/duplicate 2️⃣ This issue or pull request already exists label Aug 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView Blazor ❤️ MAUI Issues in MAUI functionality that affect Blazor, but are not bugs in Blazor itself i/regression This issue described a confirmed regression on a currently supported version platform/windows 🪟 s/duplicate 2️⃣ This issue or pull request already exists t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants