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

Only allow one factory to be created #13

Open
CLeeSpruit opened this issue Jan 12, 2020 · 0 comments
Open

Only allow one factory to be created #13

CLeeSpruit opened this issue Jan 12, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@CLeeSpruit
Copy link
Owner

Describe the bug
Calling multiple createFactories on the same component will...do just that, but also screws up the component registry.

To Reproduce
Steps to reproduce the behavior:

  1. vivi.createFactory(SomeComponent)
  2. vivi.createFactory(SomeComponent)
  3. Error

Expected behavior
Calling multiple createFactories should just create it once and warn the user if they call it multiple times on the same thing.

@CLeeSpruit CLeeSpruit added the bug Something isn't working label Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant