Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor ProtectedSessionStorage timeout

$
0
0

Hey I´m currently working on a blazor-server-app and encountered a problem.

I´m using the protected session storage to save my data.If the value of a key exceeds a certain amount of characters (34160) the circuit starts attempt to reconnect and recovers. However the application is in a frozen state.

I try to access the storage inside the OnInitializedAsync method.

 protected override async Task OnInitializedAsync() {    Warenkorb = await SessionStorageService.GetNotNull<Warenkorb>( SessionStorageKeys.WarenkorbKey ); }

Inside the SessionStorageService:

 public async Task<T> GetNotNull<T>( string key ) {    ProtectedBrowserStorageResult<string> result = await protectedSessionStorage.GetAsync<string>( key ); }

Debugger stops at "GetAsync(key)"

Is there any explanation for this?Thanks


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>