Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions website/docs/concepts/components/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ For example, to default a boolean prop to `true`, use the attribute `#[prop_or(t

Call `function` to initialize the prop value. `function` should have the signature `FnMut() -> T` where `T` is the field type.

:::warning
The function is currently called even if the prop is explicitly set. If your function is performance intensive, consider using `Option` where `None` values are initialized in the `create` method.
See [#1623](https://github.com/yewstack/yew/issues/1623)
:::

## PartialEq

It makes sense to derive `PartialEq` on your props if you can do so.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ For example, to default a boolean prop to `true`, use the attribute `#[prop_or(t

Call `function` to initialize the prop value. `function` should have the signature `FnMut() -> T` where `T` is the field type.

:::warning
The function is currently called even if the prop is explicitly set. If your function is performance intensive, consider using `Option` where `None` values are initialized in the `create` method.
See [#1623](https://github.com/yewstack/yew/issues/1623)
:::

## PartialEq

It makes sense to derive `PartialEq` on your props if you can do so.
Expand Down