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
Hey Alan, this is a big miss on our end. Thanks for reporting.
I'll add the clarification of what this optional parameter does when turned off. Just to be clear the parameter is optional and if called without it it will work just as the README mentions. When false is passed as an argument it will skip resetting the anonymousId (but reset the rest of the user data.
The reset method is listed as having no parameters in the docs:
https://github.com/segmentio/analytics-react-native#reset
reset: () => void;
But it looks like it does actually take a parameter:
analytics-react-native/packages/core/src/analytics.ts
Line 679 in e3ff066
And this is also reflected in the typescript definition
analytics.d.ts
.reset(resetAnonymousId?: boolean): Promise<void>;
I think it would be good to unify these to increase clarity.
The text was updated successfully, but these errors were encountered: