@statsig/react-bindings 3.31.0 → 3.31.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/react-bindings",
3
- "version": "3.31.0",
3
+ "version": "3.31.1-beta.1",
4
4
  "license": "ISC",
5
5
  "homepage": "https://github.com/statsig-io/js-client-monorepo",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  "directory": "packages/react-bindings"
10
10
  },
11
11
  "dependencies": {
12
- "@statsig/client-core": "3.31.0",
13
- "@statsig/js-client": "3.31.0"
12
+ "@statsig/client-core": "3.31.1-beta.1",
13
+ "@statsig/js-client": "3.31.1-beta.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.6.3 || ^17.0.0 || ^18.0.0 || ^19.0.0"
@@ -53,6 +53,7 @@ const context = {
53
53
  storageProvider: client_core_1.Storage,
54
54
  sdkInstanceID: '',
55
55
  };
56
+ const _noopContextHandle = new client_core_1.PrecomputedEvaluationsContextHandle('', () => ({}), () => ({}), () => null, () => ({ userID: '' }), () => '');
56
57
  const _client = {
57
58
  isNoop: true,
58
59
  loadingStatus: 'Uninitialized',
@@ -64,6 +65,7 @@ const _client = {
64
65
  updateUserSync: _noopWithInitializeDetails,
65
66
  updateUserAsync: _noopAsyncWithInitializeDetails,
66
67
  getContext: () => (Object.assign({}, context)),
68
+ getContextHandle: () => _noopContextHandle,
67
69
  checkGate: () => false,
68
70
  getFeatureGate: _defaultEvaluation('gate'),
69
71
  getDynamicConfig: _defaultEvaluation('config'),
@@ -5,7 +5,7 @@ const react_1 = require("react");
5
5
  const StatsigContext_1 = require("./StatsigContext");
6
6
  const useStatsigClient_1 = require("./useStatsigClient");
7
7
  function getClientUser(client) {
8
- const context = client.getContext();
8
+ const context = client.getContextHandle();
9
9
  return context.user;
10
10
  }
11
11
  function useStatsigUser() {