Skip to content

Commit 25e4050

Browse files
hopefully fix docs
1 parent f614efe commit 25e4050

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/06-runtime/05-hydratable.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ All data returned from a `hydratable` function must be serializable. But this do
6969
`hydratable` adds an inline `<script>` block to the `head` returned from `render`. If you're using CSP, this script will likely fail to run. You can provide a `nonce` to `render`:
7070

7171
```ts
72+
// @errors: 2304 2708
7273
const { head, body } = await render(App, { csp: { nonce: 'abcd123' } });
7374
```
7475

7576
This will add the `nonce` to the script block. If you need to use hashes instead, you can do that as well:
7677

7778
```ts
79+
// @errors: 2304 2708
7880
const { head, body, hashes } = await render(App, { csp: { hash: true } });
7981
```
8082

0 commit comments

Comments
 (0)