Comments (8)
I think you guys are discussing two different things.
@MBNSoftware is addressing how to address the specific exception scenario you gave as an example. While @d00lar is simply saying that the basic unhandled exception catch all logic is missing from the template. The issue raised has nothing to do with awaiting a task or not but what happens when an unhandled exception occurs.
The issue was also brought up on the template repo #451
from templates.
Hi everyone, as part of upgrading templates for the upcoming MudBlazor 7.0.0 release, I rebuilt templates from scratch and the error <div>
is there. You can find the change in this PR: #465
from templates.
Hello,
Could this "help" ?
To summarize, it's mainly because the Task is not (may not be) awaited. Which is potentially understandable if the original method was not a task : the calls to it were not "awaited".
So I would not qualify this as a bug but rather as a bad programming practice (no offence to you, of course).
Regards,
Christophe
from templates.
Yes i known all that
but best practise is best practise
and life is life / sometimes someone can forget something
but still
in default .net template
there is some 'bar' at the bottom of page with reload btn as You probably known
so same thing im expecting in mudblazor template?
in .net6 template of mudblazor WebAssembly it was
but in .net 8 template for 'server side' project there is not - this DIV is missing
with this as i wrote
this is as expected - do You think it should not be there anymore?
regards
from templates.
To be honest, as I feel it's a "bad programming practice", I would not even try to solve this. It would add mess where there's already enough, I think.
Don't get me wrong, though, I understand your need to handle such exception in a task. But, as many sources seem to agree, the correct way to handle it properly is to await the call. Period.
I'm not skilled enough to go against that, hence my advice to (try to) stay with good practice. Again, no offence but pure common sense or pragmatism,
Regards,
Christophe
from templates.
so You guys think that default blazor option for handling unhandled exceptions - 'Down bar showing that some error occured and You can try reload'
is not needed anymore? but it was needes sometimes ago..? in mudblazor older / webassembly template? from witch version this concept is abbanden?
from templates.
exacly - it is just example nothing more.
also it just 'freaze app' when this div is missing so if some unaware developer will hit this kind of error - he can wait even hour or two waiting for task to compleat seeing no error or no sign of something bad happened.
from templates.
Transferred the issue to MudBlazor/Templates repo
from templates.
Related Issues (20)
- Template not found HOT 18
- Rendering does not Work correclty in "InteractivityAuto_AlliInteractive_auth" HOT 2
- Invalid options (from Tutorial) HOT 1
- Logout code not included. HOT 3
- No Exception information shown HOT 1
- error when use .net 8 template with interactive render auto HOT 9
- Template With Auth and MudBlazor Components HOT 1
- Templates with multiple .csproj files (i.e. Auto and Wasm) break when created inside of a directory that follows kebab case naming convention (i.e. my-mudblazor-project). HOT 1
- Filtering and paging Datagrid not working HOT 1
- Interactivity does not work in MudBlazor WASM template for Visual Studio for .NET 8 HOT 7
- PWA not working HOT 1
- Authentication pages cause the app not to update mudblazor layers properly HOT 3
- Add material design 3 HOT 1
- MudIcon CreationTool HOT 2
- Project created with net 8 template throws InvalidOperationException on first start HOT 5
- How to view the template displayed on the homepage HOT 3
- Logout returns 405, static checkbox does not work on remember me HOT 7
- Mudblazor Web App places appsettings.json in root of client HOT 3
- StaticInput causes OnInitializedAsync to be called three times HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templates.