Skip to content

Commit

Permalink
Add title and link for data-wp-each-child (#59505)
Browse files Browse the repository at this point in the history
Co-authored-by: c4rl0sbr4v0 <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Apr 30, 2024
1 parent 44401b2 commit 15a51cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/interactivity/docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,8 @@ For that, you must use `data-wp-each-key` in the `<template>` tag and not `data-
</ul>
```

### `wp-each-child`

For server-side rendered lists, another directive called `data-wp-each-child` ensures hydration works as expected. This directive is added automatically when the directive is processed on the server.

```html
Expand Down

0 comments on commit 15a51cc

Please sign in to comment.