@visns-studio/visns-components 6.5.3 → 6.5.4
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
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
92
92
|
},
|
|
93
93
|
"name": "@visns-studio/visns-components",
|
|
94
|
-
"version": "6.5.
|
|
94
|
+
"version": "6.5.4",
|
|
95
95
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
96
96
|
"main": "src/index.js",
|
|
97
97
|
"files": [
|
|
@@ -141,7 +141,12 @@ const GenericAuth = ({
|
|
|
141
141
|
}
|
|
142
142
|
setIsLoading(false);
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
// The live pathname, not the router hook's: this resolves after
|
|
145
|
+
// Login has already navigated, and the closure still holds
|
|
146
|
+
// '/login' from the render that created the effect — firing a
|
|
147
|
+
// second navigate('/') over the settled dashboard, whose route
|
|
148
|
+
// re-render is the sub-second flicker after sign-in.
|
|
149
|
+
if (window.location.pathname.split('/')[1] === 'login') {
|
|
145
150
|
navigate('/', { replace: true });
|
|
146
151
|
}
|
|
147
152
|
} catch (error) {
|