My Library Docs

Multi-root Sidebar

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl

Storage

You can restore the value of a named store to browser storage.


storage options

If you omit the storage option, it will reuse the existing storage alias for that name, and if there is no alias, in-memoryis the default. Specify storage when persistence is needed.

ts

Lowercase storage names can be used in their basic form, and aliases for IndexedDB, WebSQL, localStorage, and sessionStorage are normalized to the same backend.

ts
sessionstorage

sessionstorage and sessionStorage uses the browser's sessionStorage. Values are maintained within the current tab/session scope and will hydrate if recreated with the same name and storage option.

tsx
Example of saving user settings

The example below saves UI preferences to localStorage. If recreated with the same name and storage option after a refresh, it hydrates the saved value.

tsx
© 2026 Byeolnaerim. All rights reserved.IntroductionPrivacy Policy