Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Singleton Derby components are not yet documented. #52

Open
hdavidzhu opened this issue Oct 1, 2018 · 0 comments
Open

Singleton Derby components are not yet documented. #52

hdavidzhu opened this issue Oct 1, 2018 · 0 comments

Comments

@hdavidzhu
Copy link
Contributor

I recently learned that Derby components can be singletons, and this doesn't seem like it's been documented yet. I'm adding this issue as a TODO so we could include it in the docs someday:

https://github.com/derbyjs/derby/blob/2c1a296e44799571e1d7386ad022ed7579aaab0a/lib/components.js#L202

Seems like the usage is just:

class MyComponent

  singleton: true

and that create is not called as part of the lifecycle. More context would be greatly appreciated 😄

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant