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

Add support for optional callbacks to component properties #612

Merged
merged 2 commits into from
Aug 23, 2019

Conversation

Wodann
Copy link
Contributor

@Wodann Wodann commented Aug 23, 2019

Added transformer for conversion of a closure to an optional callback, as requested in issue #609.

@jstarry
Copy link
Member

jstarry commented Aug 23, 2019

Wow, awesome, thank you!! Looks great 👍

Could you also add a test? I think tests/macro/html-component-pass.rs would be a good place..

@Wodann
Copy link
Contributor Author

Wodann commented Aug 23, 2019

I've added pass tests for optional callbacks. There is not really a fail test, as the idea of it being optional prevents failure.

@jstarry
Copy link
Member

jstarry commented Aug 23, 2019

Sweet, looks great!

@jstarry
Copy link
Member

jstarry commented Aug 23, 2019

bors r+

bors bot added a commit that referenced this pull request Aug 23, 2019
612: Add support for optional callbacks to component properties r=jstarry a=Wodann

Added transformer for conversion of a closure to an optional callback, as requested in issue #609.

Co-authored-by: Wodann <remco.kuijper@gmail.com>
@bors
Copy link
Contributor

bors bot commented Aug 23, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit bc447ad into yewstack:master Aug 23, 2019
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