Software-Engineering
Video
# Web State-Management
The web is stateless. That means, that the server fulfills a request & probably forgets about it.
So the value will be lost.
# Ways to store State
- in memory state
- in URLs - querystring parameters
- state container (dependency injection)
- client-side storage (localStorage, sessionStorage)
- server-side storage (database)
# 1. in Memory State
with usage of attribute CascadingParameter
# 2. in URL
# 3. Dependency Injection
The counter’s value will be shared across the application using DI.
# 4. Browser Storage - Client-Side
Using Browser Storage system in Blazor. Information gets saved in cache.