-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
BlazorWebApp .Net 8 App State management #31316
Comments
🍂🎁 Happy Holidays! ❄️⛄This issue has been marked for triage on the Blazor Docs GitHub project, and I'll respond as soon as I return from the holiday vacation the second week of January. We only work on documentation on this repo. If you need product support, close this issue and seek assistance through one or more of the following support channels: If you think that you found a potential bug in the framework or have product feedback, close this issue and open a new issue for the ASP.NET Core product unit at dotnet/aspnetcore issues. Bug reports require a clear explanation of the problem, usually including a minimal repro project placed on GitHub for the product unit engineers to download and run. If you determine with the product unit that it isn't a bug but merely requires documentation, please re-open this docs issue and place a cross-link to your engineering issue discussion. For problems or feedback on Visual Studio, close this issue and use the Report a Problem or Suggest a Feature processes from within VS, which open internal issues for the VS product unit. For more information, see Visual Studio Feedback. For problems with Visual Studio Code, close this issue and ask for support on community support forums. For bug reports and product feedback, open an issue on the microsoft/vscode GitHub repo. 💃🕺🥳 Happy New Year! 🎈🎆🍾🥂🎉 See you in 2024! |
We can't support third-party content for Blazor, so that would need to be taken up with him.
Root-level cascading values do work (and that is the correct version of the article). The approaches described and the examples are functional AFAIK. You'd need to put up a minimal repro project of the behavior that you're describing. If you can't get our guidance to work, open an issue for the product unit at ... https://github.com/dotnet/aspnetcore/issues ... and cross-link your minimal repro project so they can see what you're doing. Please add ...
... to the bottom of your opening comment so that I can follow along. I might re-open this for doc work depending on what they say. You're looking at the wrong version of the article. Change your doc version selector to 8.0 for this version of the guidance ... |
Appreciate the comments. Here's the repo containing an example which shows root level cascading not working. |
Hi everyone. any suggestions/comments would be greatly appreciated. |
It looks like you followed the guidance correctly. The product unit will need to investigate on the PU issue that you opened. I'm 👂 over there for how it turns out. The reason that responses are so slow right now is that they have a large backlog of Blazor Web App/8.0 issues to address. Hopefully, they'll reach your issue soon. |
I see Steve just responded. That's kind'a challenging to get into a thumbnail remark, but I'm distilling it down to something like ...
... 🤔 something like that 😆. |
... but 🤔 .........Hummmmmmmm ... I need to look at that a little closer compared to what you did. |
Idk @vconfrence ... did you not register |
I'll wait to see if Steve reacts to my remark on the PU issue. The best I can do thus far in terms of a doc update is ...
... but like I said ... that doesn't really address the problem that you ran into. AFAICT, you did that already and already knew that. 😄 |
Ok ... getting closer to something that I can cover, but it looks like we still don't have an answer on wrapping the |
Latest stab 🔪 at text would be something like ...
... and I see a bit of text that I need to update separately in the 8.0 state management doc, where it states ...
That needs to be updated for 8.0. ... AND I need to place a cross-link from the Cascading values and params article to the State management article in an Additional resources section added to the doc. |
Description
Following Carl Franklin's application state management in blazor doesn't seem to work in .Net 8.
https://www.youtube.com/watch?v=4WPuGwxZKIA
The local storage instance and the renderfragment appear to be null. in addition getting The render handle is not yet assigned when calling statehaschanged() in the cascading app state throws the following exception "The render handle is not yet assigned."
Here's the github repo the project
https://github.com/vconfrence/BlazorApp1.git
CascadingAppState component which is meant to be a root level cascading value available through cascading parameter within any compoenent doesn't seem to work. LocalStorage and other variables don't seem to be initializing.
Also followed guidelines posted by Microsoft which didn't work
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/cascading-values-and-parameters?preserve-view=true&view=aspnetcore-8.0#root-level-cascading-values
https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management?view=aspnetcore-7.0&pivots=server#handle-prerendering
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/state-management.md
Document ID
e5e1273b-195e-5da1-b4aa-66bbcff1425b
Article author
@guardrex
The text was updated successfully, but these errors were encountered: