Skip to content

Commit 193a3a4

Browse files
committed
update docs
1 parent bfc86e6 commit 193a3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/06-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ You can add call multiple `handle` functions with [the `sequence` helper functio
6767
`resolve` also supports a second, optional parameter that gives you more control over how the response will be rendered. That parameter is an object that can have the following fields:
6868

6969
- `ssr: boolean` (default `true`) — if `false`, renders an empty 'shell' page instead of server-side rendering
70-
- `transformPageChunk(opts: { html: string, done: boolean }): string` — applies custom transforms to HTML. If `done` is true, it's the final chunk
70+
- `transformPageChunk(opts: { html: string, done: boolean }): MaybePromise<string | undefined>` — applies custom transforms to HTML. If `done` is true, it's the final chunk. Chunks are not guaranteed to be well-formed HTML (they could include an element's opening tag but not its closing tag, for example) but they will always be split at sensible boundaries such as `%sveltekit.head%` or layout/page components.
7171

7272
```js
7373
/// file: src/hooks.js

0 commit comments

Comments
 (0)