-
Notifications
You must be signed in to change notification settings - Fork 5
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
Firebase-js-sdk v9 modular support #172
Comments
We will need to dig into this a little and see if we can support it, it might hover not be possible, since the imports will be dependent in the users queries (example, if a user uses a filter (where query) we would need to dynamically import that, which might be tricky and possibly slow down initial queries - have not investigated this yet) alternatively it would be up to the user to include all the functions they would be using during initialization. I do not see us supporting this in the very short term but will we will definitely have a look at how we could potentially do this. |
Yeah I guess the api would be needed to change radically to support this. Users would need to import any part of the query operation they want to have executed, to allow bundlers to only include the necessary dependencies at build time. |
@gitdubz do you have any updates (six months later) related to supporting Firebase v9, our Angular application is now frozen to the Angular We want to upgrade Angular to v13, Firebase to v9 and @angular/fire to v7.2, but because we depend on In how many months |
Hi @stepani, The Flamelink SDK should work when using compat mode for v9 If any changes would be required on ng-flamelink, you can perhaps request it on the repo (this is a community managed package) As for modular support, like I mentioned above this would probably require a v2 of the SDK since the logic to handle the different versions would not really make sense as an example a simple query
for v9 support we would need to allow users to initialize the flamelink sdk in the following manner
in order to do the same query which would then look like this
Internally we would need to have logic to determine which format to use I hope this makes sense? |
In order to use v9 you can import the packages as follow with "compat" mode // Firebase app is always required and must be first // Flamelink app is always required const firebaseConfig = { const firebaseApp = firebase.initializeApp(firebaseConfig) const app = flamelink({ |
Is there any plan to support firebase-js-sdk v9's modular system?
The current service approach used in the flamelink sdk wouldn't be working with the new modular approach.
Would be great if flamelink could be used on top of the modular firebase sdk instance, as it helps immensely to prevent unused code being bundled.
The text was updated successfully, but these errors were encountered: