Blazored / SessionStorage

A library to provide access to session storage in Blazor applications
https://blazored.github.io/SessionStorage/
MIT License
417 stars 44 forks source link

How do I removed a variable stored in local storage from a Blazor Server App? #79

Closed Keenan-Softserve closed 1 year ago

Keenan-Softserve commented 1 year ago

The README only shows an example of setting a value in local storage but not removing it.

chrissainty commented 1 year ago

The available APIs are listed at the bottom of the README. There is also an example of removing a value in the Sample apps.

https://github.com/Blazored/SessionStorage/blob/092ce10e7c23ff145553266952c534dc31a4b5e0/samples/BlazorWebAssembly/Pages/Index.razor#L116

Keenan-Softserve commented 1 year ago

Thanks but that's a WASM app, that's why I specified that I'm asking how to do this in a Blazor Server app.

chrissainty commented 1 year ago

There is no difference between WebAssembly and Server, they both use the same APIs. There is also a Server project in the samples folder!