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
We are using CodePush to update our app, and if we change the Segment config we get Error: Duplicate Analytics client.
I think this is because there is currently no way to recreate the singleton sharedAnalytics object. I see that the fix for #16 avoids this problem when the config is the same, but that doesn't help if the config changes.
Is there a way to reset the singleton? Or if not, is there a way to detect this other than catching the error?
The text was updated successfully, but these errors were encountered:
We are using CodePush to update our app, and if we change the Segment config we get
Error: Duplicate Analytics client
.I think this is because there is currently no way to recreate the singleton
sharedAnalytics
object. I see that the fix for #16 avoids this problem when the config is the same, but that doesn't help if the config changes.Is there a way to reset the singleton? Or if not, is there a way to detect this other than catching the error?
The text was updated successfully, but these errors were encountered: