Skip to content

Error: "Maximum call stack size exceeded" when using chabok.track() #5

@eddiecooro

Description

@eddiecooro

chabokpush-rn: v1.3.0

chabokUtils.js:

  let chabok = new chabokpush(authConfig, options)  
  export function initChabok(_userId){...}
  export function initPushNotification() {...}
  export function onAddToCartTrackTapped() {
    chabok.track('AddToCart')
  }

App.js

  class App extends Component {
    ...
    componentDidMount() {
      CHABOK.initChabok(DeviceInfo.getUniqueID());
      CHABOK.initPushNotification();
      CHABOK.onAddToCartTrackTapped();
    }
    ...
  }

result

screenshot from 2018-12-17 11-11-28

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions