@mx-cartographer/insights-micro-widget
Advanced tools
Comparing version 5.1.1-alpha.sms2 to 5.1.1-alpha.sms99
@@ -0,1 +1,5 @@ | ||
## [5.1.1] - 10-22-2024 | ||
- **FIXED** - Prevent store from initializing if it's already been initialized | ||
## [5.1.0] - 10-02-2024 | ||
@@ -2,0 +6,0 @@ |
@@ -18,3 +18,2 @@ import React, { useEffect } from 'react'; | ||
const { updateBeat } = useInsightsMicroWidgetStore(); | ||
console.log('inView', inView); | ||
useEffect(() => { | ||
@@ -21,0 +20,0 @@ if (inView) { |
@@ -35,3 +35,5 @@ import React, { useEffect, useState } from 'react'; | ||
useEffect(() => { | ||
store.initialize(endpoint, token, logOutUser); | ||
if (!store.isInitialized) { | ||
store.initialize(endpoint, token, logOutUser); | ||
} | ||
}, [endpoint, token, logOutUser]); | ||
@@ -38,0 +40,0 @@ useEffect(() => { |
@@ -22,3 +22,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.initialize = (endpoint, token, logOutUser) => __awaiter(this, void 0, void 0, function* () { | ||
console.log('imw > AppStore initialize'); | ||
yield this.copyStore.initialize(endpoint, token); | ||
@@ -25,0 +24,0 @@ yield this.insightsMicroWidgetStore.initialize(endpoint, token, logOutUser); |
{ | ||
"name": "@mx-cartographer/insights-micro-widget", | ||
"version": "5.1.1-alpha.sms2", | ||
"version": "5.1.1-alpha.sms99", | ||
"description": "Package of Insights Micro widget and components", | ||
@@ -92,3 +92,3 @@ "main": "dist/index.js", | ||
"@loadable/component": "^5.15.3", | ||
"@mx-cartographer/common": "^8.1.1-alpha.sms1", | ||
"@mx-cartographer/common": "^8.1.0", | ||
"@mxenabled/cssinjs": "^0.6.0", | ||
@@ -95,0 +95,0 @@ "@tanstack/react-virtual": "^3.0.0-beta.39", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
164302
123
1631