-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Maui Blazor image cache is not working #8279
Comments
@romanov thanks for contacting us. Does the same webview instance survive across navigations? |
Hi @romanov. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
How to check it? It's default MAUI Blazor template with default BlazorWebView |
@romanov put a static counter variable in your blazor app, increment it every time index is rendered and display the results. That's a good proxy to determine if the blazor webview component is being recreated |
Hi @romanov. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
What is the best method to put the counter's incementation?
Is it right for a blazor page? Or they call everytime on navigation? I've just tested a blank new MAUI Blazor template and added image to the second view. Same reload. |
@romanov OnInitialized within the Main.razor is an appropriate place to do this, since only runs once. Essentially what we are looking for is to see if this is happening because |
Hi @romanov. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Same problem and OnInitialized gets called only once (platform windows tho) |
@mkArtakMSFT moving this to .NET 7.0 for consideration. Will this show up in our planning meetings? |
For Windows this long image loading only happens when using the packaging format msix. |
After a short discussion we've decided to remove the |
I am also observing this problem. I am preparing a Proof-of-concept app for a large company to replace React and React Native, and this blink of the images between the page navigation is not helping with the presentation.
|
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro with existing sample code. recipeSearch-main.zip |
Same issue. And IDK how you guys think it's ok to "release" Blazor Hybrid with this. |
Please prioritize this for the upcoming .NET 8 preview 7 release, because it will be useful in some very common scenarios when using MAUI Blazor instead of competitor technologies. And this image (re)loading/blink behaviour between navigations is breaking the user experience. |
I have just tested it now with MAUI Version 8.0.0-rc.1.9171 , .NET SDK 8.0.100-rc.1.23455.8 and the issue persists here: The image served locally blinks when navigating pages. @mkArtakMSFT is the |
So any work arounds for this? I have an application rendering many images in a list and the page load is terrible. |
The work we do dotnet/aspnetcore#52824 should simplify this for us. But for now, moving to Backlog. |
This is really not a good look for blazor hybrid TBH, showing local images is like the most basic scenario you can have in app. |
yes, we also have Maui hybrid in production and this really hurts the overall feel of the app |
@mkArtakMSFT is there a chance this will be resolved in some .NET 9 patch release ? |
It would be great to see this fixed. |
Description
Hello!
When navigating beetween the pages, you see the refresh (blink) of the images (static, or background).
Manifest (or serviceworker) cache is not helping.
Steps to Reproduce
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
Android (Emulator and real device)
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: