diff --git a/responses.md b/responses.md index 128c445dfb..23824a2ee6 100644 --- a/responses.md +++ b/responses.md @@ -459,7 +459,7 @@ const sendMessage = () => { When sending data back to the stream via `send`, the active connection to the stream is canceled before sending the new data. All requests are sent as JSON `POST` requests. > [!WARNING] -> Since the `useStream` hook makes a `POST` request to your application, a valid CSRF token is required. The easiest way to provide the CSRF token is to [include it via a `meta` tag in your application layout's `head`](/docs/{{version}}/csrf#csrf-x-csrf-token). +> Since the `useStream` hook makes a `POST` request to your application, a valid CSRF token is required. The easiest way to provide the CSRF token is to [include it via a meta tag in your application layout's head](/docs/{{version}}/csrf#csrf-x-csrf-token). The second argument given to `useStream` is an options object that you may use to customize the stream consumption behavior. The default values for this object are shown below: @@ -653,7 +653,7 @@ Route::get('/users.json', function () { }); ``` -The `useJsonStream` hook is identical to the [`useStream` hook](#consuming-streamed-responses) except that it will attempt to parse the data as JSON once it has finished streaming: +The `useJsonStream` hook is identical to the [useStream hook](#consuming-streamed-responses) except that it will attempt to parse the data as JSON once it has finished streaming: ```tsx tab=React import { useJsonStream } from "@laravel/stream-react";