MAIDR Documentation - v3.39.0
    Preparing search index...

    Class LocalStorageService

    Implementation of StorageService using browser's localStorage API.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Saves a value to localStorage by serializing it to JSON.

      Type Parameters

      • T

      Parameters

      • key: string

        The storage key

      • value: T

        The value to store

      Returns void

    • Loads a value from localStorage and deserializes it from JSON.

      Type Parameters

      • T

      Parameters

      • key: string

        The storage key

      Returns T | null

      The stored value or null if not found or on error