@k-int/stripes-kint-components 5.12.0 → 5.13.0

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,3 +1,10 @@
1
+ # [5.13.0](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.12.0...v5.13.0) (2025-02-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * On rendering SASQLookupComponent, do not fetch resources until a query is provided ([00c45a5](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/commit/00c45a54307d1564d15e6d1268fc067c2c04994e))
7
+
1
8
  # [5.12.0](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.11.0...v5.12.0) (2025-02-13)
2
9
 
3
10
 
@@ -77,7 +77,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
77
77
  } = (0, _reactQuery.useQuery)(queryNamespace, () => {
78
78
  return ky.get(`${fetchParameters.endpoint}${queryParams}`).json();
79
79
  }, {
80
- enabled: !!currentPage
80
+ enabled: (!!query?.filters || !!query?.query) && !!currentPage
81
81
  });
82
82
  (0, _react.useEffect)(() => {
83
83
  if (count !== data?.totalRecords) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/stripes-kint-components",
3
- "version": "5.12.0",
3
+ "version": "5.13.0",
4
4
  "description": "Stripes Component library for K-Int specific applications",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -93,7 +93,7 @@ const SASQLookupComponent = forwardRef((props, ref) => {
93
93
  return ky.get(`${fetchParameters.endpoint}${queryParams}`).json();
94
94
  },
95
95
  {
96
- enabled: !!currentPage,
96
+ enabled: (!!query?.filters || !!query?.query) && !!currentPage,
97
97
  }
98
98
  );
99
99