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

Refactor and simplify Callback #2301

Merged
merged 9 commits into from Dec 28, 2021
Merged

Conversation

hamza1311
Copy link
Member

Description

This PR:

  • removes Callback::once
  • removes Callback::reform
  • removes passive from Callback
  • adds ability to return value from callback

Fixes #2269

Checklist

  • I have run cargo make pr-flow
  • I have reviewed my own code
  • I have added tests

@hamza1311 hamza1311 added breaking change A-yew Area: The main yew crate labels Dec 26, 2021
@hamza1311 hamza1311 added this to the v0.20 milestone Dec 26, 2021
examples/boids/src/slider.rs Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Dec 26, 2021

Visit the preview URL for this PR (updated for commit c857231):

https://yew-rs--pr2301-cleanback-isk7t7rz.web.app

(expires Tue, 04 Jan 2022 19:20:24 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Copy link
Member

@voidpumpkin voidpumpkin left a comment

Choose a reason for hiding this comment

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

Good changes thanks for the work

Copy link
Member

@voidpumpkin voidpumpkin left a comment

Choose a reason for hiding this comment

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

reform shall stay 🏰 ⚔️

github-actions[bot]
github-actions bot previously approved these changes Dec 28, 2021
I literally tick-marked reformat before commit. Does it not use rustfmt???
packages/yew/src/callback.rs Outdated Show resolved Hide resolved
github-actions[bot]
github-actions bot previously approved these changes Dec 28, 2021
Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
@voidpumpkin voidpumpkin merged commit 3758e6d into yewstack:master Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-yew Area: The main yew crate breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor and simplify Callback
3 participants