createMemorySessionStorage
react-router

createMemorySessionStorage

createMemorySessionStorage<Data = SessionData, FlashData = Data>(props): SessionStorage<Data, FlashData>

Creates and returns a simple in-memory SessionStorage object, mostly useful for testing and as a reference implementation.

Note: This storage does not scale beyond a single process, so it is not suitable for most production scenarios.

Parameters

  • props: MemorySessionStorageOptions
Docs and examples CC 4.0