LWT JavaScript API
    Preparing search index...
    • Get text words with offline fallback.

      This function implements an offline-first strategy:

      1. If offline and text is cached, return cached data
      2. If online, try network first
      3. If network fails and text is cached, return cached data
      4. Otherwise, throw error

      Parameters

      • textId: number

        Text ID to fetch

      Returns Promise<TextDataResult>

      Promise with text data and source information