Amplitude-TypeScript icon indicating copy to clipboard operation
Amplitude-TypeScript copied to clipboard

feat(session replay): add ability to wait for setSessionId process to complete

Open kwalker3690 opened this issue 1 year ago • 0 comments

Summary

Now that setSessionId has an async action, we should wait for it to complete before proceeding in the plugin. This PR adds an optional async interface to setSessionId via the AmplitudeReturn interface, await setSessionId().promise. This will allow us to properly tag start session events with the correct replay id, after fetching the remote config to ensure the replays shoul d be captured.

Checklist

  • [x] Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

kwalker3690 avatar May 03 '24 19:05 kwalker3690