-
Notifications
You must be signed in to change notification settings - Fork 64
Support for firebase.analytics(); #70
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
Can you show me your code? Instead of accessing via context, you can import |
I would probably suggest, as we do in the issue you linked, creating your own |
This is how I've added the analytics to the fuego class in
It is initialized in the
|
Are you passing an instance of that class to a |
Yep, everything else works perfectly.
|
What if you do fuego.analytics() there? |
Oh -- you aren't importing Firebase/analytics |
Well spotted! I completely missed that part and now it is working! Typescript solution:
Thank you for your super fast help! |
Cool! |
Hello!
I'm a new user both with firebase and SWR, but really enjoying the simplicity of this library!
The only trouble I'm facing is that my team wants to use
firebase.analytics();
and I do not understand how to access it through the fuego instance.I have tried to add analytics to the fuego class as described in #59, and then accessing the fuego instance with
useFuegoContext
. This is not working. Is there any other way to do this?The text was updated successfully, but these errors were encountered: