Blazor Mistakes You Need to Avoid πŸ”₯


Hey Reader,

Let's dive into some Blazor pitfalls this week that you should definitely watch out for.

🚨 Beware of Looping Errors!

Ever used a loop alongside a lambda expression in your markup? Granted, this isn't exclusive to Blazor but a C# quirk to be mindful of. If you're using incremented variables within these lambda expressions, the results might surprise you. The following video sheds some light on this.

video preview​

πŸ› οΈ Using Forms with Blazor SSR

One of the highlights of Blazor Static Server-Side Rendering (SSR) is that you can utilize the EditForm component even without Blazor Server or WebAssembly. However, you might find yourself puzzled after form submission, wondering why updating or creating an entity isn't working as expected. This video explains the reasons behind it.

video preview​

If you have questions, feel free to reply to this email. I'm here for more tutorials and to answer any questions.

Thanks so much to our community and my Patrons for your support. You are the foundation of this newsletter and my channel. Stay safe, have fun coding, and remember - the best part is creating something new! πŸ’»

Take care,

Patrick


Patrick God

Become a .NET & Blazor expert with weekly tutorials featuring best practices and the latest improvements, right in your inbox.

Read more from Patrick God
video preview

Hey Reader, After 15 years of building web apps, I just recently discovered Vertical Slice Architecture. I know. I’m late to the party. But wow, this approach really changed how I think about structuring Blazor projects. So I decided to show you a simple, real-world example of how to use Vertical Slice Architecture in a Blazor Server app. πŸŽ₯ Watch the full tutorial now: In this new tutorial, you'll learn: βœ… How to structure your app with feature folders βœ… How to avoid overcomplicating things...

video preview

Hey Reader, In my last videos, we built a solid CRUD API using Vertical Slice Architecture, Minimal APIs, and Carter - super clean and modern. But there’s still one problem... πŸ‘‰ What happens when a user sends empty or invalid data? In this new YouTube tutorial, I’ll show you how to fix that with: And yep, the full source code is free to download. Just check the link in the video description. If you’ve been enjoying this Vertical Slice series, this is a must-watch. It’s a simple upgrade that...

video preview

Hey Reader, If you're building apps with Blazor, you've probably asked yourself this: πŸ‘‰ Should I use SSR, Blazor Server, or WebAssembly? It’s a common question - and I get it a lot. So I made a brand-new YouTube video walking you through how to choose the best one for your app. πŸŽ₯ Watch it here: If you're building a Blazor app or planning to do so soon, this should help clear up a lot of confusion. Let me know what you think, and feel free to reply if you have any questions. Take care, Patrick...