Тёмный

Application State in Blazor Apps 

dotnet
Подписаться 299 тыс.
Просмотров 21 тыс.
50% 1

Carl shows you the benefits of keeping application data outside components and pages, how to do cross-component change notifications, and how to persist that AppState to localstorage.

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@YogShogoot
@YogShogoot 3 года назад
[09:00] sweetest moment in any coding related video on the internet
@maacpiash
@maacpiash 3 года назад
Yes, that was unexpected and quite adorable!
@rammaharjan3667
@rammaharjan3667 3 года назад
0+
@SergeiCalabonga
@SergeiCalabonga 3 года назад
Great! Thank you very much! But where I can find the code source?
@TheCodingKent
@TheCodingKent 3 года назад
This is exactly what I needed. Thanks.
@codefoxtrot
@codefoxtrot 2 года назад
Don't get me wrong-- I'm happy Microsoft is putting up videos like this, but I have to ask why they are so time constrained and rushed? You can hear Carl make at least one reference to the time as he is rushed through these elegantly prepared slides and demos. I'd rather this be a two hour video, where Carl has the time he needs to step through this and can exhaust the relevant questions from the community. Even better would be building each of these examples from a starting point of the default template, so folks can follow along and learn. So I'm glad to come across this video, but please consider allotting much more time to community demonstrators in the future-- it will benefit the entire community!
@csharpfritz
@csharpfritz 2 года назад
This video was part of the .NET Conf 2020 virtual conference and was constrained to 30 minutes. We're happy to post longer form content as appropriate
@codefoxtrot
@codefoxtrot 2 года назад
@@csharpfritz Appreciate the reply, big fan. Was researching the app state topic and approaches at the time, so was craving as much detail as possible. Thanks for all you do!
@dmtuan
@dmtuan 3 года назад
Great video. Love the info!
@tbremard
@tbremard Год назад
Great presentation, thanks ! @microsoft this is just crazy to have not a single reference to INotifyPropertyChanged !
@ronaldschutte7948
@ronaldschutte7948 2 года назад
I found out the hard way that it is quite easy to create multiple instances of a Singleton service. I hope this will be fixed some day. Just mixing constructor and attribute injection should not create multiple singletons.
@alkishadjinicolaou5831
@alkishadjinicolaou5831 2 года назад
How do we deal with page refreshes? All data are lost except for singleton scoped data..
@maacpiash
@maacpiash 3 года назад
If I want to implement app state with DI (AddScoped) and I do not need to get notifications on changes of the app state, can I get away without implementing IDisposable?
@charlesbaldo
@charlesbaldo 3 года назад
Please Carl, i started reading your books on Visual Basic, you are making me feel old, when you tell me you are old.
@Handyzhang
@Handyzhang 3 года назад
great sharing!
@tomarik
@tomarik 2 года назад
Here are the links to source code from the video. blazorroadshow.azurewebsites.net/blazortrainfiles/PersistingAppState.zip blazorroadshow.azurewebsites.net/blazortrainfiles/ApplicationState.zip
@GiovanniQuarella
@GiovanniQuarella 3 года назад
I saw you have to enable Text Editor toolbar. After Visual Studio 16.8 upgrade the toolbar setup is not saved for non administrator user. Is it a VS bug?
@seancpp
@seancpp 3 года назад
Nice last name Carl :)
@chezchezchezchez
@chezchezchezchez 3 года назад
I just want to get the damn “remember me “feature to my blazer server login. How can I most easily do this? Thanks so much anybody that can help me
@leftjabrighthook
@leftjabrighthook Год назад
"the one who must be obeyed" 🤣
@cristovaomorgado
@cristovaomorgado 3 года назад
Fluxor is a great solution also
@maacpiash
@maacpiash 3 года назад
Fluxor is a bit cumbersome, with too much boilerplate code, for my preference.
@williamnoel8443
@williamnoel8443 3 года назад
I tried to use it in a WASM only project and it complained about static files. Never could get it to work. 🤷‍♂️
@justind6983
@justind6983 3 года назад
there is no such thing as "secure" storage once data hits the browser.. .the same functions you use to decrypt a message on the frontend(ie: the browser) I can invoke as well. you are essentially delivering to your clients both the key and lock to your secrets.
@justind6983
@justind6983 3 года назад
to reiterate... the "ciphered" data HAS to be sent to the backend for decryption... there is nothing special about this process.... it's two methods... you can use a ceaser cypher for all it matters
@metaltyphoon
@metaltyphoon 3 года назад
That’s completely wrong. Blazor server is the one thing that can decode the protected storage, thats why its NOT available via Blazor WASM.
@justind6983
@justind6983 3 года назад
@@metaltyphoon the storage isn't secure. It's still on the clients computer. There is nothing "completely wrong" about my response.
@justind6983
@justind6983 3 года назад
@@metaltyphoon more simply put.. once you out your encoded data on a clients machine.. it's no longer trusted. I can decrypt most messages using a simply dictionary available on most Macs
@arsoftcr1095
@arsoftcr1095 2 года назад
copy from ruby ​​and rails, copy from react, copy all. They never do anything original.
Далее
ASP.NET Core Series: PWA's with Blazor
29:08
Просмотров 28 тыс.
Trailblazor: Building Dynamic Applications with Blazor
30:56
Will A Guitar Boat Hold My Weight?
00:20
Просмотров 68 млн
Starman🫡
00:18
Просмотров 12 млн
State Management in Blazor Apps
41:31
Просмотров 23 тыс.
Microfrontends with Blazor: Welcome to the Party!
31:23
Using the HttpContext in Blazor Server the right way
32:59
Multi-Tenant: Database Per Tenant or Shared?
8:55
Просмотров 11 тыс.
Getting Started With Blazor
31:05
Просмотров 4,9 тыс.
Components in Blazor
28:52
Просмотров 9 тыс.