# Function mergeStates

- mergeStates(
  appState?: Record<string, unknown>,
  userState?: Record<string, unknown>,
  sessionState?: Record<string, unknown>,
  ): Record<string, unknown>

  Merges app state, user state, and session state.

  #### Parameters

  - appState: Record<string, unknown> = {}

    The application state.

  - userState: Record<string, unknown> = {}

    The user state.

  - sessionState: Record<string, unknown> = {}

    The session state.

  #### Returns Record<string, unknown>

  The merged state.

  - Defined in sessions/base_session_service.ts:222