@pdg/react-table 1.0.124 → 1.0.125

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.esm.js CHANGED
@@ -1361,6 +1361,7 @@ var deHash = function () {
1361
1361
  * ******************************************************************************************************************/
1362
1362
  var _b, _c;
1363
1363
  var className = _a.className, initStyle = _a.style, sx = _a.sx, color = _a.color, hash = _a.hash, stickyHeader = _a.stickyHeader, fullHeight = _a.fullHeight, search = _a.search, table = _a.table, betweenSearchTableComponent = _a.betweenSearchTableComponent, onGetData = _a.onGetData, onRequestHashChange = _a.onRequestHashChange;
1364
+ var initPathRef = useRef(window.location.pathname);
1364
1365
  var searchRef = useRef(undefined);
1365
1366
  var tableRef = useRef(undefined);
1366
1367
  var lastGetDataDataRef = useRef({});
@@ -1574,7 +1575,7 @@ var deHash = function () {
1574
1575
  * hash
1575
1576
  * ******************************************************************************************************************/
1576
1577
  useEffect(function () {
1577
- if (hash) {
1578
+ if (hash && window.location.pathname === initPathRef.current) {
1578
1579
  var data = hashToSearchValue();
1579
1580
  if (data)
1580
1581
  getData(data);
package/dist/index.js CHANGED
@@ -1361,6 +1361,7 @@ var deHash = function () {
1361
1361
  * ******************************************************************************************************************/
1362
1362
  var _b, _c;
1363
1363
  var className = _a.className, initStyle = _a.style, sx = _a.sx, color = _a.color, hash = _a.hash, stickyHeader = _a.stickyHeader, fullHeight = _a.fullHeight, search = _a.search, table = _a.table, betweenSearchTableComponent = _a.betweenSearchTableComponent, onGetData = _a.onGetData, onRequestHashChange = _a.onRequestHashChange;
1364
+ var initPathRef = React.useRef(window.location.pathname);
1364
1365
  var searchRef = React.useRef(undefined);
1365
1366
  var tableRef = React.useRef(undefined);
1366
1367
  var lastGetDataDataRef = React.useRef({});
@@ -1574,7 +1575,7 @@ var deHash = function () {
1574
1575
  * hash
1575
1576
  * ******************************************************************************************************************/
1576
1577
  React.useEffect(function () {
1577
- if (hash) {
1578
+ if (hash && window.location.pathname === initPathRef.current) {
1578
1579
  var data = hashToSearchValue();
1579
1580
  if (data)
1580
1581
  getData(data);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pdg/react-table",
3
3
  "title": "React Table",
4
- "version": "1.0.124",
4
+ "version": "1.0.125",
5
5
  "description": "React Table",
6
6
  "type": "module",
7
7
  "types": "dist/index.d.ts",