rollbar-react-native icon indicating copy to clipboard operation
rollbar-react-native copied to clipboard

clearPerson function not working

Open dav-armour opened this issue 3 years ago • 1 comments

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

dav-armour avatar Mar 04 '21 00:03 dav-armour

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

waltjones avatar Mar 16 '21 21:03 waltjones