Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Yew #1

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Update Yew #1

merged 2 commits into from
Sep 6, 2023

Conversation

zesterer
Copy link
Contributor

@zesterer zesterer commented Sep 6, 2023

Thanks for the brilliant crate! Here's a PR that updates Yew to 0.20, the latest version.

}

fn change(&mut self, props: Self::Properties) -> ShouldRender {
let update_segments = self.props.text != props.text;
fn changed(&mut self, ctx: &Context<Self>, _old: &Self::Properties) -> bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really, this logic can be simplified: since yew now provides new and old properties to compare, we can just use this rather than storing them in self.

@siku2 siku2 merged commit 3ee48ac into siku2:master Sep 6, 2023
@siku2
Copy link
Owner

siku2 commented Sep 6, 2023

Much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants