Discover and read the best of Twitter Threads about #blazorbits

Most recents (1)

With the first glance at Blazor, I have that idea - it's perfect for MVVM.

I started with MVVM on WPF apps many years ago and spent a lot of time with MVVMLight and Xamarin, so I immediately saw an advantage of it for Blazor as well.

1/3

#Blazor #BlazorBits
This is ComponentBase which I use for MVVM everywhere. The only problem is JS

You cannot use js methods in OnInitializeAsync, and data initialization in OnAfterRender looks wrong to me (at least it's not what docs propose).

2/3 ImageImage
And there are things like js-loading indicator which need to be started if the page loaded but the data not.

Much confusing
For now, I simply move all JS initialization to OnAfterRender permanently

Oh, the gist of this classes available here
gist.github.com/xakpc/6d15b7b1…

3/3
Read 4 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!