expo/expo · error

[AsyncStorage] Expected array of key-value pairs as first ar

Error message

[AsyncStorage] Expected array of key-value pairs as first argument to multiSet

What it means

Error "[AsyncStorage] Expected array of key-value pairs as first argument to multiSet" thrown in expo/expo.

Source

Thrown at apps/expo-go/modules/@react-native-async-storage/async-storage/src/helpers.ts:12

import type { ErrorLike } from "./types";

export function checkValidArgs(
  keyValuePairs: readonly unknown[],
  callback: unknown
) {
  if (
    !Array.isArray(keyValuePairs) ||
    keyValuePairs.length === 0 ||
    !Array.isArray(keyValuePairs[0])
  ) {
    throw new Error(
      "[AsyncStorage] Expected array of key-value pairs as first argument to multiSet"
    );
  }

  if (callback && typeof callback !== "function") {
    if (Array.isArray(callback)) {
      throw new Error(
        "[AsyncStorage] Expected function as second argument to multiSet. Did you forget to wrap key-value pairs in an array for the first argument?"
      );
    }

    throw new Error(
      "[AsyncStorage] Expected function as second argument to multiSet"
    );
  }
}

export function checkValidInput(...input: unknown[]) {

View on GitHub (pinned to b09195aac2)

When it happens

Trigger: Thrown at apps/expo-go/modules/@react-native-async-storage/async-storage/src/helpers.ts:12 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of expo/expo@b09195aac2 (2026-08-12). Data as JSON: /api/errors/912edc992a1eceb5. Report an issue: GitHub.