Refactor conditional assign and should render.
This commit is contained in:
parent
4a2087a94e
commit
d9ddde9436
17 changed files with 85 additions and 26 deletions
|
@ -18,7 +18,7 @@ impl Component for InputGroup {
|
|||
}
|
||||
|
||||
fn change(&mut self, props: Self::Properties) -> ShouldRender {
|
||||
render_on_change(&mut self.props, props)
|
||||
render_if_ne(&mut self.props, props)
|
||||
}
|
||||
|
||||
fn view(&self) -> Html {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue