@trustgraph/react-state 1.2.1 → 1.2.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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3359,12 +3359,12 @@ const useKnowledgeCores = () => {
|
|
|
3359
3359
|
});
|
|
3360
3360
|
/**
|
|
3361
3361
|
* Mutation for loading multiple knowledge cores
|
|
3362
|
-
* Executes parallel load requests with specified flow
|
|
3362
|
+
* Executes parallel load requests with specified flow and collection
|
|
3363
3363
|
*/
|
|
3364
3364
|
const loadKnowledgeCoresMutation = reactQuery.useMutation({
|
|
3365
|
-
mutationFn: ({ ids, flow, onSuccess }) => {
|
|
3365
|
+
mutationFn: ({ ids, flow, collection, onSuccess }) => {
|
|
3366
3366
|
// Execute load requests in parallel for all knowledge cores
|
|
3367
|
-
return Promise.all(ids.map((id) => socket.knowledge().loadKgCore(id, flow))).then(() => {
|
|
3367
|
+
return Promise.all(ids.map((id) => socket.knowledge().loadKgCore(id, flow, collection))).then(() => {
|
|
3368
3368
|
// Execute success callback if provided
|
|
3369
3369
|
if (onSuccess)
|
|
3370
3370
|
onSuccess();
|