Skip to content

Commit 2794a69

Browse files
committed
allow SSR of hook
1 parent e080e12 commit 2794a69

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/react/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { StreamBody, StreamId } from "../client";
77
import { useEffect, useMemo, useRef, useState } from "react";
88
import { FunctionReference } from "convex/server";
99

10-
if (typeof window === "undefined") {
11-
throw new Error("this is frontend code, but it's running somewhere else!");
12-
}
13-
1410
/**
1511
* React hook for persistent text streaming.
1612
*

0 commit comments

Comments
 (0)