github nytimes/react-tracking v5.4.0
v5.4.0 - Now supports Promises/Async methods

latest releases: v9.3.2, v9.3.1, v9.3.0...
6 years ago

Thanks to @spencewood in #82 react-tracking now supports async functions (or functions that return a Promise)

  @track()
  async handleEvent() {
    return await asyncCall(); // returns a promise
  }

See the main README documentation for more details, including how to conditionally dispatch a tracking event only when the promise resolves and/or rejects.

Don't miss a new react-tracking release

NewReleases is sending notifications on new releases.