-
Notifications
You must be signed in to change notification settings - Fork 940
Remove analytics prefix from settings() #4286
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
Conversation
|
@@ -57,15 +58,38 @@ declare module '@firebase/component' { | |||
} | |||
} | |||
|
|||
/** | |||
* Firebase Analytics initialization function that allows custom | |||
* settings. Can be called at most once. If no custom settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it throw if it's called more than once, or after getAnalytics() is called for the same app instance?
Also, settings()
manages a global state that should not change from instance to instance. Does it even make sense to call it as part of initializeAnalytics()
which is creating an instance. It seems to make more sense to let people call settings()
manually once before calling any getAnalytics()
. So perhaps we don't need initializeAnalytics()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed PR to just remove analytics prefix from analyticsSettings.
3fd97fc
to
fb20dae
Compare
(This PR was originally "add initializeAnalytics()")
Remove
analytics
prefix fromsettings()
method.