l-min-components 1.0.623 → 1.0.626
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
|
@@ -61,20 +61,13 @@ const HeaderComponent = (props) => {
|
|
|
61
61
|
handleGetDefaultAccount();
|
|
62
62
|
}, []);
|
|
63
63
|
|
|
64
|
-
useEffect(() => {
|
|
65
|
-
// Initial set to avoid undefined comparisons
|
|
66
|
-
prevAccountRef.current = selectedAccount;
|
|
67
|
-
}, []);
|
|
68
|
-
|
|
69
64
|
// Reload when another account is selected
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
prevAccountRef.current = selectedAccount;
|
|
77
|
-
}, [selectedAccount]);
|
|
65
|
+
// useEffect(() => {
|
|
66
|
+
// if (selectedAccount && selectedAccount !== prevAccountRef.current) {
|
|
67
|
+
// window.location.reload(); // Reload the page when a different account is selected
|
|
68
|
+
// }
|
|
69
|
+
// prevAccountRef.current = selectedAccount; // Update the ref after any potential reload
|
|
70
|
+
// }, [selectedAccount]);
|
|
78
71
|
|
|
79
72
|
|
|
80
73
|
useEffect(() => {
|