Skip to content

1.37.1 - bugfix: gate/config/experiment/layer result memoization

Choose a tag to compare

@statsig-kong statsig-kong released this 27 Mar 22:00
· 18 commits to main since this release
1900c99

Memoization logic on hooks was broken due to object parameters changing references on rerenders.

This was masking another issue in the StatsigSynchronousProvider where we did not memoize on a new version of config specs passed in to the StatsigSynchronousProvider. Because we weren't memoizing, the results were correct, but the performance was degraded in this case as well.

Performance of hooks via both providers should be improved as a result

Updated statsig-js to 4.51.0

Included In This Release

  • d4b655a tore-statsig
    • bugfix: memoize checks without creating new object references (#165)
  • e200034 tore-statsig
    • test: (tdd) add test to verify hooks memoize results (#167)
  • 528d6e4 tore-statsig
    • bugfix: memoize on config update time (#166)

Full Changelog: 1.37.0...1.37.1