Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release] 1.38.0 - queue events prior to initialization on Statsig (#…
…174) Due to the order of effects, the effect to initialize Statsig was not actually called until child components rendered. This means that if you did not waitForInitialization or waitForCache, it would be possible to call methods on the Statsig class before it was initialized. Our gate/config/experiment and even event logging hooks were okay, because they consume the StatsigContext and guard on initialization being called. This updates logevent to: 1) not throw 2) batch up to 20 events pre initialize (and then log them once the internal js sdk instance is ready to consume them) >Included In This Release >- 4d21882 tore-statsig > - Merge pull request #21 from statsig-io/1-37-1-pub (#173) >- e33ba1e tore-statsig > - bugfix: queue log events before initialization (#171) >- 8b7c1a0 tore-statsig > - chore: bump depedency versions (#172) --------- Co-authored-by: statsig-kong[bot] <statsig-kong[bot]@users.noreply.github.com>
- Loading branch information