@compilot/react-sdk 2.15.5-dev → 2.21.2-dev
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.
|
@@ -169,8 +169,9 @@ function useGlobalState(_ref2) {
|
|
|
169
169
|
var stateValue = (_state$stateKey = state[stateKey]) !== null && _state$stateKey !== void 0 ? _state$stateKey : memoizedDefaultValue;
|
|
170
170
|
var setterFn = react.useCallback(function (setterFn) {
|
|
171
171
|
setState(function (state) {
|
|
172
|
+
var currValue = state[stateKey];
|
|
172
173
|
var newValue = setterFn(stateValue);
|
|
173
|
-
if (compareStateValues(
|
|
174
|
+
if (compareStateValues(currValue, newValue) !== 0) {
|
|
174
175
|
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, stateKey, newValue));
|
|
175
176
|
}
|
|
176
177
|
return state;
|
|
@@ -169,8 +169,9 @@ function useGlobalState(_ref2) {
|
|
|
169
169
|
var stateValue = (_state$stateKey = state[stateKey]) !== null && _state$stateKey !== void 0 ? _state$stateKey : memoizedDefaultValue;
|
|
170
170
|
var setterFn = react.useCallback(function (setterFn) {
|
|
171
171
|
setState(function (state) {
|
|
172
|
+
var currValue = state[stateKey];
|
|
172
173
|
var newValue = setterFn(stateValue);
|
|
173
|
-
if (compareStateValues(
|
|
174
|
+
if (compareStateValues(currValue, newValue) !== 0) {
|
|
174
175
|
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, stateKey, newValue));
|
|
175
176
|
}
|
|
176
177
|
return state;
|
|
@@ -166,8 +166,9 @@ function useGlobalState(_ref2) {
|
|
|
166
166
|
var stateValue = (_state$stateKey = state[stateKey]) !== null && _state$stateKey !== void 0 ? _state$stateKey : memoizedDefaultValue;
|
|
167
167
|
var setterFn = useCallback(function (setterFn) {
|
|
168
168
|
setState(function (state) {
|
|
169
|
+
var currValue = state[stateKey];
|
|
169
170
|
var newValue = setterFn(stateValue);
|
|
170
|
-
if (compareStateValues(
|
|
171
|
+
if (compareStateValues(currValue, newValue) !== 0) {
|
|
171
172
|
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, stateKey, newValue));
|
|
172
173
|
}
|
|
173
174
|
return state;
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilot/react-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.2-dev",
|
|
4
4
|
"description": "ComPilot React SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"pino": "^9.5.0",
|
|
35
35
|
"zod": "^3.23.8",
|
|
36
|
-
"@compilot/web-sdk": "2.
|
|
37
|
-
"@nexeraid/identity-api-client": "2.
|
|
38
|
-
"@nexeraid/identity-schemas": "2.
|
|
39
|
-
"@nexeraid/logger": "2.
|
|
36
|
+
"@compilot/web-sdk": "2.21.2-dev",
|
|
37
|
+
"@nexeraid/identity-api-client": "2.21.1-dev",
|
|
38
|
+
"@nexeraid/identity-schemas": "2.22.0-dev",
|
|
39
|
+
"@nexeraid/logger": "2.21.1-dev"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=17.0.0 <20.0.0"
|