@dev-fastn-ai/react-core 2.3.1 → 2.3.2
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.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2428,10 +2428,10 @@ function useFieldOptions(field) {
|
|
|
2428
2428
|
// Generate a unique query key for this field
|
|
2429
2429
|
const queryKey = react.useMemo(() => {
|
|
2430
2430
|
return ["field-options", field.key, field.name];
|
|
2431
|
-
}, [field.key, field.name]);
|
|
2431
|
+
}, [field.key, field.name, searchQuery]);
|
|
2432
2432
|
// Initial fetch query for static options or first page
|
|
2433
2433
|
const initialQuery = reactQuery.useQuery({
|
|
2434
|
-
queryKey: [...queryKey, "initial"
|
|
2434
|
+
queryKey: [...queryKey, "initial"],
|
|
2435
2435
|
queryFn: async () => {
|
|
2436
2436
|
var _a, _b;
|
|
2437
2437
|
if (!((_a = field.optionsSource) === null || _a === void 0 ? void 0 : _a.getOptions))
|
package/dist/index.esm.js
CHANGED
|
@@ -2426,10 +2426,10 @@ function useFieldOptions(field) {
|
|
|
2426
2426
|
// Generate a unique query key for this field
|
|
2427
2427
|
const queryKey = useMemo(() => {
|
|
2428
2428
|
return ["field-options", field.key, field.name];
|
|
2429
|
-
}, [field.key, field.name]);
|
|
2429
|
+
}, [field.key, field.name, searchQuery]);
|
|
2430
2430
|
// Initial fetch query for static options or first page
|
|
2431
2431
|
const initialQuery = useQuery({
|
|
2432
|
-
queryKey: [...queryKey, "initial"
|
|
2432
|
+
queryKey: [...queryKey, "initial"],
|
|
2433
2433
|
queryFn: async () => {
|
|
2434
2434
|
var _a, _b;
|
|
2435
2435
|
if (!((_a = field.optionsSource) === null || _a === void 0 ? void 0 : _a.getOptions))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-fastn-ai/react-core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "React hooks and components for integrating Fastn AI connector marketplace into your applications. Built on top of @fastn-ai/core with React Query for optimal performance.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|