Blazor ProtectedSessionStorage timeout

Viewed 47

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

0 Answers
Related