Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Use singleton to create no-field-constructor for all repos \firebaseRep #17

Open
ZaynJarvis opened this issue Feb 10, 2019 · 6 comments
Labels
discussion Discuss on the topic

Comments

@ZaynJarvis
Copy link
Member

No description provided.

@ZaynJarvis ZaynJarvis added the discussion Discuss on the topic label Feb 10, 2019
@clarencecastillo
Copy link
Member

I think this would come useful but not quite sure how to do it. Makes it easy to import the repositories. The part I'm not sure here is how we can provide FirebaseRepository the config object which contains the API keys.

@ZaynJarvis
Copy link
Member Author

ZaynJarvis commented Feb 11, 2019 via email

@clarencecastillo
Copy link
Member

Wouldn't that result in circular dependency? ArtworkRepo needs FirebaseRepo for PeopleRepo which has an ArtworkRepo instance which needs FirebaseRepo and so on... Or am I missing something? 😆

@ZaynJarvis
Copy link
Member Author

ZaynJarvis commented Feb 11, 2019 via email

@clarencecastillo
Copy link
Member

Oh, my mistake, it was just an example. A bad one! 🤣Or we do something like dependency injection like in Angular. I am also not sure how to implement those haha. If complicated, we can keep this in view first and work with other features.

@ZaynJarvis
Copy link
Member Author

ZaynJarvis commented Feb 11, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion Discuss on the topic
Projects
None yet
Development

No branches or pull requests

2 participants