Question

User open the app multiple tabs with same credentials. Error heap.push is not function

  • 19 January 2024
  • 0 replies
  • 22 views

So if I have one tab open, everything closes well with no errors but if I have more than one tab and close I get the error below. I checked and Heap has been added one time and there are not multiple instances in the same tab. What should I do when using multiple tabs?  

 

When user login I call

this._heapio.identify(`${userDetails.email} (${userDetails.full_name})`);
this._heapio?.addUserProperties(userDetails);
this._heapio.addEventProperties(eventDetails);

When user logout

 this._heapio.resetIdentity();
this._heapio.removeEventProperty('customer_roles');
this._heapio.removeEventProperty('environment');
this._heapio.removeEventProperty('api_version');

Error

heap.push is not a function
    at Array.resetIdentity (<anonymous>:6:54)


0 replies

Be the first to reply!

Reply