Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
reconnect in example
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 20, 2023
1 parent 4126f82 commit 99793f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/async/src/app/sse-infinite/StreamedTimeSSE.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export function StreamedTimeSSE() {
useEffect(() => {
const abortSignal = new AbortController();
createEventSource<ResponseShape>("/sse-infinite", {
reconnect: true,
signal: abortSignal.signal,
})
.then(async (shape) => {
Expand Down

0 comments on commit 99793f5

Please sign in to comment.