docs: partials update formatting (#1905)
This commit is contained in:
@@ -48,12 +48,12 @@ Behind the scenes, when the user clicks an `<a>`-tag, Fresh fetches the new page
|
|||||||
and only pulls out the relevant content out of the HTML response. When it finds
|
and only pulls out the relevant content out of the HTML response. When it finds
|
||||||
a matching partial area it will update the content inside the partial.
|
a matching partial area it will update the content inside the partial.
|
||||||
|
|
||||||
> ℹ️ The `name` prop of the `<Partial>` component is expected to be unique among
|
> [info]: The `name` prop of the `<Partial>` component is expected to be unique
|
||||||
> Partials. That's how Fresh knows which parts of the response need to go on the
|
> among Partials. That's how Fresh knows which parts of the response need to go
|
||||||
> current page.
|
> on the current page.
|
||||||
|
|
||||||
> ℹ️ Passing `f-client-nav={false}` disables client side navigation and partials
|
> [info]: Passing `f-client-nav={false}` disables client side navigation for all
|
||||||
> for the current elements and the elements below it.
|
> elements below the current node.
|
||||||
|
|
||||||
### Optimizing partial requests
|
### Optimizing partial requests
|
||||||
|
|
||||||
@@ -194,5 +194,5 @@ export default function LogView() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> ℹ️ When picking the `prepend` or `append` mode, make sure to add keys to the
|
> [info]: When picking the `prepend` or `append` mode, make sure to add keys to
|
||||||
> elements.
|
> the elements.
|
||||||
|
|||||||
Reference in New Issue
Block a user