@admin-layout/tailwind-ui 12.2.3-alpha.1 → 12.2.3-alpha.11
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.
|
@@ -8,15 +8,15 @@ import*as React from'react';import {useRouteError,useNavigate,isRouteErrorRespon
|
|
|
8
8
|
*/
|
|
9
9
|
function RemixErrorBoundary() {
|
|
10
10
|
const error = useRouteError();
|
|
11
|
-
|
|
11
|
+
useNavigate();
|
|
12
12
|
React.useEffect(() => {
|
|
13
13
|
logger.error('Route Error:', error);
|
|
14
14
|
console.error('Route Error:', error);
|
|
15
15
|
}, [error]);
|
|
16
16
|
const handleGoHome = () => {
|
|
17
|
-
|
|
18
|
-
//
|
|
19
|
-
window.location.
|
|
17
|
+
// Use window.location.href for a full page navigation to clear any stale state
|
|
18
|
+
// This is more reliable than navigate() + reload() which can have race conditions
|
|
19
|
+
window.location.href = '/';
|
|
20
20
|
};
|
|
21
21
|
if (isRouteErrorResponse(error)) {
|
|
22
22
|
return React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-ui",
|
|
3
|
-
"version": "12.2.3-alpha.
|
|
3
|
+
"version": "12.2.3-alpha.11",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"watch": "npm run build:lib:watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@admin-layout/client": "12.2.3-alpha.
|
|
32
|
+
"@admin-layout/client": "12.2.3-alpha.11",
|
|
33
33
|
"@radix-ui/react-accordion": "^1.2.0",
|
|
34
34
|
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
35
35
|
"@radix-ui/react-aspect-ratio": "^1.1.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"typescript": {
|
|
90
90
|
"definition": "lib/index.d.ts"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "f3d1f7c3752099cbb7d6a525d8b2285d97885df9"
|
|
93
93
|
}
|