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

attach options to component (#550) #794

Merged
merged 3 commits into from
Aug 29, 2017
Merged

attach options to component (#550) #794

merged 3 commits into from
Aug 29, 2017

Conversation

Rich-Harris
Copy link
Member

Closes #550, closes #777. this.options is stored on the component instance, so you can pass through whatever you want and it'll be accessible in lifecycle hooks and methods.

@Rich-Harris
Copy link
Member Author

I removed the ability to instantiate a component without options, because there's no real-world scenario in which that's useful. Not sure why that test was there in the first place.

@Rich-Harris Rich-Harris merged commit ce109f0 into master Aug 29, 2017
@Rich-Harris Rich-Harris deleted the gh-550 branch August 29, 2017 15:23
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.

Allow "listeners" to be passed into constructor Pass options through to oncreate
1 participant