Skip to content

Commit e6750ac

Browse files
committed
update
1 parent a7eb9e7 commit e6750ac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/routes/solid-start/building-your-application/data-fetching.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ All of these operations are performed completely on the server regardless of how
4444

4545
:::caution[Modifying headers after streaming]
4646
Once streaming begins, response headers (including status and cookies) are sent and cannot be changed.
47-
Any header-modifying logic within a server function, such as redirects or APIs like `useSession` that set cookies, must run before streaming starts; otherwise, this error will occur: Cannot set headers after they are sent to the client.
47+
Any header-modifying logic within a server function, such as redirects or APIs like `useSession` that set cookies, must run before streaming starts;
48+
otherwise, this error will occur:
49+
Cannot set headers after they are sent to the client.
4850

4951
To avoid this, disable streaming for queries that may modify headers by enabling the [`deferStream`](/solid-router/reference/data-apis/create-async#deferstream) option.
5052

0 commit comments

Comments
 (0)