Data SourcesReferencesessionStorage

sessionStorage Function

Creates and returns a singleton instance of SessionStorage and ensures that only one instance is created. If the instance already exists, it returns the existing instance

@template T = any
The type of the value stored in session storage. Defaults to any

@returns SessionStorage<T>

API

function sessionStorage<T = any>(): SessionStorage<T>;

Example

import {sessionStorage} from '@bitfiber/rx';
 
const ss = sessionStorage();