UseClearStorage
katanakit-js / useClearStorage
Function: useClearStorage()
Section titled “Function: useClearStorage()”function useClearStorage(target?): void;Defined in: infrastructure/storage/storage.service.ts:399
Clears all values from the specified storage backend.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
target? |
"localStorage" | "sessionStorage" |
"localStorage" |
Which storage backend to clear (default: "localStorage"). |
Returns
Section titled “Returns”void
Example
Section titled “Example”useClearStorage("sessionStorage");