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

Allow components with Unit props to be constructed without any parameters #12

Merged
merged 1 commit into from
Aug 8, 2017

Conversation

shadaj
Copy link
Owner

@shadaj shadaj commented Aug 8, 2017

Previously, to construct a component or external component taking Unit for props, you would have to pass in () as props. Now, such components can be constructed without any arguments to the apply method.

MyComponent(()) -> MyComponent() (the original apply method still works)

This currently doesn't work in IntelliJ, but there is an issue opened https://youtrack.jetbrains.com/issue/SCL-12375

@shadaj shadaj added this to the v0.1.1 milestone Aug 8, 2017
@shadaj shadaj force-pushed the propless-component-apply branch from 6c527e8 to b617c85 Compare August 8, 2017 00:47
@shadaj shadaj self-assigned this Aug 8, 2017
@shadaj shadaj merged commit 9a8584f into master Aug 8, 2017
@shadaj shadaj deleted the propless-component-apply branch August 8, 2017 19:54
Atry added a commit to Atry/slinky that referenced this pull request Jul 1, 2023
Atry added a commit to Atry/slinky that referenced this pull request Jul 1, 2023
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.

1 participant