@trackunit/react-core-contexts-test 0.1.127 → 0.1.129
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/index.cjs2.js +5 -0
- package/index.esm2.js +5 -0
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -184,6 +184,9 @@ const mockEnvironmentContext = {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
const mockNavigationContext = {
|
|
187
|
+
hasAccessTo: (options) => {
|
|
188
|
+
return Promise.resolve(true);
|
|
189
|
+
},
|
|
187
190
|
gotoAssetHome: (assetId, options) => {
|
|
188
191
|
return Promise.resolve(true);
|
|
189
192
|
},
|
|
@@ -749,6 +752,8 @@ const useDebugger = ({ id, propsToWatch, }) => {
|
|
|
749
752
|
var _a, _b;
|
|
750
753
|
return id || ((_b = (_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2]) === null || _b === void 0 ? void 0 : _b.trim()) || "unknown-id";
|
|
751
754
|
}, [id]);
|
|
755
|
+
// eslint-disable-next-line no-console
|
|
756
|
+
console.log("Rerender ", id);
|
|
752
757
|
React.useEffect(() => {
|
|
753
758
|
const changedProps = Object.entries(propsToWatch || {}).reduce((result, [key, value]) => {
|
|
754
759
|
if (prevPropsRef.current && prevPropsRef.current[key] !== value) {
|
package/index.esm2.js
CHANGED
|
@@ -178,6 +178,9 @@ const mockEnvironmentContext = {
|
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
const mockNavigationContext = {
|
|
181
|
+
hasAccessTo: (options) => {
|
|
182
|
+
return Promise.resolve(true);
|
|
183
|
+
},
|
|
181
184
|
gotoAssetHome: (assetId, options) => {
|
|
182
185
|
return Promise.resolve(true);
|
|
183
186
|
},
|
|
@@ -743,6 +746,8 @@ const useDebugger = ({ id, propsToWatch, }) => {
|
|
|
743
746
|
var _a, _b;
|
|
744
747
|
return id || ((_b = (_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2]) === null || _b === void 0 ? void 0 : _b.trim()) || "unknown-id";
|
|
745
748
|
}, [id]);
|
|
749
|
+
// eslint-disable-next-line no-console
|
|
750
|
+
console.log("Rerender ", id);
|
|
746
751
|
useEffect(() => {
|
|
747
752
|
const changedProps = Object.entries(propsToWatch || {}).reduce((result, [key, value]) => {
|
|
748
753
|
if (prevPropsRef.current && prevPropsRef.current[key] !== value) {
|