You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this current form, this plugin requires that the user create an analytics instance and use it throughout the app, which requires either
using a global analytics variable (which is not recommended and is an antipattern)
wrapping it with a singleton class(inconvenient)
dependency injecting it (using prop drilling or state management solutions).
Rather than this, it would be beneficial if it was a singleton instance like Segment.Instance just like how Firebase analytics does it with FirebaseAnalytics.Instance
The text was updated successfully, but these errors were encountered:
Not doing singletons is part of the design of the library to enable support for multiple clients by default. This is better to handle per app at the moment.
In this current form, this plugin requires that the user create an analytics instance and use it throughout the app, which requires either
analytics
variable (which is not recommended and is an antipattern)Rather than this, it would be beneficial if it was a singleton instance like
Segment.Instance
just like how Firebase analytics does it withFirebaseAnalytics.Instance
The text was updated successfully, but these errors were encountered: