Discussion on Blazor, a framework for building web apps with .NET and WebAssembly https://blazor.net
dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e
dotnet-maestro[bot] on master
Update dependencies from https:… (compare)
dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e
Update dependencies from https:… (compare)
dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e
dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d
List<string>
to pass the values to a function that uses EPPlus to build the spreadsheet. The biggest issue is that dates get formatted as text and so don't benefit from the user's culture (they're always "mm/dd/yyyy"). This is clumsy. How do a build a List of primitives instead, so I can ensure correct cell by cell population?
Tuple<Type, object>
from sourcegen?
@AlbertoPa re: Parallel.For - if it's your code, then yes, as long as you configure it to never use more threads than are available - I have it in some code that I run in SSB and WASM, so in WASM it only uses the 1 thread available and is slower, but at least it does not break.
If it is a library that didn't think about limiting threads then not likely to work.
@ItsIgzy_twitter The NavigationManager.LocationChanged event will always happen after the Location has been changed. Can you elaborate on what your desired functionality is? e.g. showing a dialog after navigation, or show a dialog before navigation, and redirect user to another page?
I want to show a dialog when the user clicks on a navmenu item, displaying a warning, and informing the user that he is going to navigate to another page, and offer him options to stay on the current page or navigate to another page.
Example would be:"User is on a details page, he then clicks on navmenu home, before the navigation starts, a dialog should pop and tell the user that he is leaving the current site and will be navigated to home, or what ever page he choosed from the nav menu"
@ItsIgzy_twitter As long as you don't want to abort that navigation it's ok, as there is currently no way to abort a Navigationevent in Blazor. But keep in mind that the LocationChanged event is called AFTER navigation has already occurred.
which basically tells me that I don't have any more options :D thanks I saw your PR on github, and if I may ask is there a way through JSRuntime to achieve that?
@ItsIgzy_twitter I am afraid you are a bit out of luck, As navigation can occur due to several avenues (Using back buttons, using javascript functions) or using the Blazor router, there is no one stop for aborting a navigation call
and thanks, I will prolly have to find another UX friendly solution to this.
AccountClaimsPrincipalFactory<RemoteUserAccount>
and check if the created user is authenticated and do my stuff then. But that feels wrong...