{
  "id": "@typed/react/Hooks#useAsyncData",
  "canonicalId": "@typed/react#useAsyncData",
  "symbol": {
    "id": "@typed/react/Hooks#useAsyncData",
    "packageName": "@typed/react",
    "moduleName": "Hooks",
    "exportName": "useAsyncData",
    "kind": "function",
    "signatures": [
      "export declare function useAsyncData<A, E, E2, R, ER = never>(source: Fx.Fx<Data.AsyncData<A, E>, E2, R>, options?: ReactiveOptions<A, E | E2, R, ER>): AsyncState<A, E | E2 | ER>;"
    ],
    "summary": "Flattens an Fx of AsyncData, preserving both its state and any source/runtime failures.",
    "sections": {},
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/react/src/Hooks.ts",
      "line": 416
    },
    "category": "function"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/react/Hooks#useAsyncData",
    "packageName": "@typed/react",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Hooks",
    "consumerSpecifier": "@typed/react/Hooks",
    "exportName": "useAsyncData",
    "qualifiedName": "useAsyncData",
    "declarationKey": "declaration:80195834d8d6470522365ca4",
    "family": "function",
    "signatures": [
      "export declare function useAsyncData<A, E, E2, R, ER = never>(source: Fx.Fx<Data.AsyncData<A, E>, E2, R>, options?: ReactiveOptions<A, E | E2, R, ER>): AsyncState<A, E | E2 | ER>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/react/src/Hooks.ts",
        "start": {
          "line": 416,
          "column": 1
        },
        "end": {
          "line": 421,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/react#useAsyncData"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:80195834d8d6470522365ca4",
    "name": "useAsyncData",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function useAsyncData<A, E, E2, R, ER = never>(source: Fx.Fx<Data.AsyncData<A, E>, E2, R>, options?: ReactiveOptions<A, E | E2, R, ER>): AsyncState<A, E | E2 | ER>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "E2",
          "R",
          "ER = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/react/src/Hooks.ts",
            "start": {
              "line": 416,
              "column": 1
            },
            "end": {
              "line": 421,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function useAsyncData<A, E, E2, R, ER = never>(source: Fx.Fx<Data.AsyncData<A, E>, E2, R>, options?: ReactiveOptions<A, E | E2, R, ER>): AsyncState<A, E | E2 | ER>;"
    ],
    "typeParameters": [
      "A",
      "E",
      "E2",
      "R",
      "ER = never"
    ],
    "summary": "Flattens an Fx of AsyncData, preserving both its state and any source/runtime failures.",
    "sections": {},
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/react/src/Hooks.ts",
        "start": {
          "line": 416,
          "column": 1
        },
        "end": {
          "line": 421,
          "column": 2
        }
      }
    ]
  }
}
