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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.623",
3
+ "version": "1.0.626",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -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
- const shouldReload = selectedAccount && selectedAccount !== prevAccountRef.current;
72
- if (shouldReload) {
73
- // Make sure any necessary conditions are met before reloading
74
- window.location.reload();
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(() => {