UseRemoveStorage
katanakit-js / useRemoveStorage
Function: useRemoveStorage()
Section titled “Function: useRemoveStorage()”function useRemoveStorage(key, target?): void;Defined in: infrastructure/storage/storage.service.ts:386
Removes a value from storage by key.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
key |
string |
undefined |
The storage key to remove. |
target? |
"localStorage" | "sessionStorage" |
"localStorage" |
Which storage backend to use (default: "localStorage"). |
Returns
Section titled “Returns”void
Example
Section titled “Example”useRemoveStorage("auth_token");