-
-
Notifications
You must be signed in to change notification settings - Fork 205
Update to Firebase 8+ #29
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
Comments
Hi @faizanabidnaqvi |
Hey @fgatti675 Thanks so much for the quick response and for adding the feature! :D I updated to the latest Firestore version and while I haven't tested extensively too, the examples seem to be running fine. However, to use the Firebase local emulator suite, I did have to do a workaround. In order to start the emulator, we need to call this code after
Since Firebase is initialized internally by the CMSApp, I believe, I couldn't call this code outside of it (that is in the index.ts file). As a workaround, I created a new component in index that wraps the CMSApp and uses a useEffect hook to start the emulators:
This makes the emulator work fine at least in the basic example. :) It will be nice to have a more elegant solution to use emulator but I am not sure how or whether it will be worth it! Thanks again for the awesome work! |
Hey @faizanabidnaqvi |
Hi there!
Thanks so much for creating this project! I have been on the lookout for a good firestore based CMS for various internal use apps and while I found some (and used them), many got outdated and don't use the latest firebase features such as realtime listeners. This one does, and so much more.
I have been using Firebase Emulators for testing new projects but that only works on Firebase 8+. It will be great to have the latest Firebase version in this project so we can test locally before deploying. The current peer dependency version for firebase doesn't allow me to call the useEmulator functions. If I install firebase 8 in my setup and run the app, I get import errors probably because Firebase has changed the way to import after v8.
The text was updated successfully, but these errors were encountered: