Basic exampleReact hooks exampleGitHub

http-streaming-request example: makeStreamingJsonRequest()

As simple as:


for await (const peopleSoFar of makeStreamingJsonRequest<Person[]>({
  url: "/api/people",
  method: "GET",
})) {
  setPeople(peopleSoFar);
}