-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support multiple apps #43
Comments
I didn't understand what you suggest. If you want to do hacks of seperate the same app to multiple projects for not paying its not something that we need to support. Its breaks the idea of one project for one app/environment. |
Multi-project apps is a basic feature supported and advertised by Re my proposal: I was thinking along the lines of offering an additional parameter to determine the app, like so: @firebase({
app1: [
'todos'
],
app2: [
'otherstuff'
]
}) and in const { app1, app2, todos, otherstuff } = this.props; This approach to global state management might not be the cleanest but it could work just fine for smaller apps. How to deal with complex "services" (such as However, if, as you say, there is some rationale that says that you only want an app to ever work against a single back-end, then that's of course unnecessary for your project, and you can safely ignore this issue :) |
Now after i saw the officially docs I understand you. Its not a common usage but it's something that can be too. It would be great if you can submit a PR for that. |
I'll see where I can find the time :D |
Currently, the
reduxReactFirebase
call is very opinionated on how to usefirebase
, it attaches itself to thestore
asfirebase
and, in addition, also attaches itself to the globalfirebase
module. That is bad style, and makes it entirely monolithic.As explained in the official documentation, you can work against the
database
of a specific app by simply storing the reference to the object from the return value of theinitializeApp
call, and then calldatabase()
on that, instead of calling it directly on the defaultfirebase
object.The text was updated successfully, but these errors were encountered: