@opendata-ai/openchart-react 9.7.0 → 9.7.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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -325,7 +325,7 @@ function ChartInner({
|
|
|
325
325
|
]);
|
|
326
326
|
useEffect2(() => {
|
|
327
327
|
const previous = mountedAppearance.current;
|
|
328
|
-
if (previous.theme !== theme || previous.darkMode !== resolvedDarkMode) {
|
|
328
|
+
if (JSON.stringify(previous.theme) !== JSON.stringify(theme) || previous.darkMode !== resolvedDarkMode) {
|
|
329
329
|
chartRef.current?.setTheme({ theme, darkMode: resolvedDarkMode });
|
|
330
330
|
mountedAppearance.current = { theme, darkMode: resolvedDarkMode };
|
|
331
331
|
}
|
|
@@ -571,7 +571,7 @@ function DataTable({
|
|
|
571
571
|
}, [isControlled, stableOnRowClick, stableOnStateChange]);
|
|
572
572
|
useEffect4(() => {
|
|
573
573
|
const previous = mountedAppearance.current;
|
|
574
|
-
if (previous.theme !== theme || previous.darkMode !== resolvedDarkMode) {
|
|
574
|
+
if (JSON.stringify(previous.theme) !== JSON.stringify(theme) || previous.darkMode !== resolvedDarkMode) {
|
|
575
575
|
tableRef.current?.setTheme({ theme, darkMode: resolvedDarkMode });
|
|
576
576
|
mountedAppearance.current = { theme, darkMode: resolvedDarkMode };
|
|
577
577
|
}
|
|
@@ -708,7 +708,7 @@ var GeoMap = /* @__PURE__ */ forwardRef3(function GeoMap2({
|
|
|
708
708
|
}, [stableOnMarkClick, stableOnMarkHover, stableOnCameraChange]);
|
|
709
709
|
useEffect5(() => {
|
|
710
710
|
const previous = mountedAppearance.current;
|
|
711
|
-
if (previous.theme !== theme || previous.darkMode !== resolvedDarkMode) {
|
|
711
|
+
if (JSON.stringify(previous.theme) !== JSON.stringify(theme) || previous.darkMode !== resolvedDarkMode) {
|
|
712
712
|
instanceRef.current?.setTheme({ theme, darkMode: resolvedDarkMode });
|
|
713
713
|
mountedAppearance.current = { theme, darkMode: resolvedDarkMode };
|
|
714
714
|
}
|