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

component.use #44

Open
yoshuawuyts opened this issue Aug 7, 2017 · 2 comments
Open

component.use #44

yoshuawuyts opened this issue Aug 7, 2017 · 2 comments

Comments

@yoshuawuyts
Copy link
Member

As per our talk 2 weeks ago, it'd be useful to start thinking of component.use().

The goal of this API would be to provide a way to extend components the way we extend choo with app.use().

Not quite sure on the API yet, but got a hunch that using an internal event emitter would be the way to go for this. Input very welcome!

@bcomnes
Copy link
Contributor

bcomnes commented Aug 7, 2017

Maybe provide a function that gets a copy of this/self and emit that emits lifecycle events?

@ungoldman
Copy link
Member

yes! component middleware!

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

No branches or pull requests

3 participants