@k-int/stripes-kint-components 2.5.0 → 2.5.1

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/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## 2.5.0 In progress
1
+ ## 2.5.1 2022-05-19
2
+ * UIOA-118 App does not function when code-splitting is enabled - no longer set history when url has not changed
3
+
4
+ ## 2.5.0 2022-05-19
2
5
  * Added FilterConfig support to generateKiwtQueryParams
3
6
  * Added a way to trigger inline creation externally through refs and useImperativeHandle
4
7
  * Fix for ActionList editing. When a formatter was in place and a field was not editable, the formatter was ignored.
@@ -52,8 +52,14 @@ var locationQuerySetter = function locationQuerySetter(_ref) {
52
52
  var location = _ref.location,
53
53
  history = _ref.history,
54
54
  nsValues = _ref.nsValues;
55
- var url = (0, _buildUrl.default)(location, nsValues);
56
- history.push(url);
55
+ var pathname = location.pathname,
56
+ search = location.search;
57
+ var url = (0, _buildUrl.default)(location, nsValues); // Do not push to history if the url didn't change
58
+ // https://issues.folio.org/browse/STSMACOM-637
59
+
60
+ if ("".concat(pathname).concat(search) !== url) {
61
+ history.push(url);
62
+ }
57
63
  };
58
64
 
59
65
  var useKiwtSASQuery = function useKiwtSASQuery() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/stripes-kint-components",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Stripes Component library for K-Int specific applications",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -5,8 +5,14 @@ import buildUrl from '../utils/buildUrl';
5
5
  import useQindex from './useQIndex';
6
6
 
7
7
  const locationQuerySetter = ({ location, history, nsValues }) => {
8
+ const { pathname, search } = location;
8
9
  const url = buildUrl(location, nsValues);
9
- history.push(url);
10
+
11
+ // Do not push to history if the url didn't change
12
+ // https://issues.folio.org/browse/STSMACOM-637
13
+ if (`${pathname}${search}` !== url) {
14
+ history.push(url);
15
+ }
10
16
  };
11
17
 
12
18
  const useKiwtSASQuery = () => {