Skip to content
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

clearPerson function not working #144

Open
dav-armour opened this issue Mar 4, 2021 · 1 comment
Open

clearPerson function not working #144

dav-armour opened this issue Mar 4, 2021 · 1 comment

Comments

@dav-armour
Copy link

The clearPerson function does not seem to be working correctly.
See below for a simple example.

import { Client } from 'rollbar-react-native';
const rollbar = new Client('API_KEY');
rollbar.error('No user test') // This works correctly - no person exists
rollbar.setPerson('9ee1638b-6100-4b47-bcd3-ee88dccf2dab')
rollbar.error('User exists') // This works correctly - person exists
rollbar.clearPerson();
rollbar.error('User still exists???') // This does not work - error still has previously set person attached

Error Screen Shot

@waltjones
Copy link
Contributor

I'm able to reproduce this. A workaround that might be acceptable depending on you needs is to rollbar.setPerson(null).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants