Skip to content

Commit

Permalink
Remove warning about prop_or_else macro
Browse files Browse the repository at this point in the history
The warning no longer applies to either version (next,
0.18.0).
  • Loading branch information
mc1098 committed Jun 13, 2021
1 parent 7538f68 commit 208d399
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
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

0 comments on commit 208d399

Please sign in to comment.