xladmin-react-router 0.3.5 → 0.3.7
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 +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/index.tsx
|
|
4
|
-
import {
|
|
4
|
+
import { useLayoutEffect, useRef } from "react";
|
|
5
5
|
import { useLocation, useNavigate } from "react-router-dom";
|
|
6
6
|
function createReactRouterAdminRouter(adapter) {
|
|
7
7
|
return {
|
|
@@ -63,7 +63,7 @@ function useReactRouterAdminRouter() {
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
useLayoutEffect(() => {
|
|
67
67
|
const previousLocation = previousLocationRef.current;
|
|
68
68
|
if (previousLocation.pathname === locationRef.current.pathname && previousLocation.search === locationRef.current.search) {
|
|
69
69
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xladmin-react-router",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "React Router adapter for xladmin.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"react": ">=19.0.0 <20.0.0",
|
|
40
40
|
"react-dom": ">=19.0.0 <20.0.0",
|
|
41
41
|
"react-router-dom": ">=6.4.0 <8.0.0",
|
|
42
|
-
"xladmin": "^0.3.
|
|
42
|
+
"xladmin": "^0.3.7"
|
|
43
43
|
}
|
|
44
44
|
}
|