@launchdarkly/react-native-client-sdk - v10.23.6
    Preparing search index...

    Function createSafeStorage

    • Adapts a user-provided LDStorage into the SDK's internal Storage.

      The internal Storage contract requires implementations to never throw. Since a custom LDStorage is application code, this wrapper guards every call: synchronous throws and rejected promises are caught and logged, get falls back to null, and set/clear resolve without surfacing the error. This keeps a faulty storage implementation from crashing the host application.

      Parameters

      Returns Storage