@ai-matrx/associations 0.13.65 → 0.13.67
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 +12 -0
- package/dist/react/index.cjs +13 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +13 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/associations
|
|
2
2
|
|
|
3
|
+
## 0.13.67
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/associations/v0.13.66..npm/associations/v0.13.67 -- apps/shared/associations`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.13.66
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/associations/v0.13.65..npm/associations/v0.13.66 -- apps/shared/associations`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.13.65
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/react/index.cjs
CHANGED
|
@@ -1818,6 +1818,7 @@ function useContainerLinks(args) {
|
|
|
1818
1818
|
edges,
|
|
1819
1819
|
status: genericStatus,
|
|
1820
1820
|
error: genericError,
|
|
1821
|
+
fetchedAt: genericFetchedAt,
|
|
1821
1822
|
reload: reloadGeneric
|
|
1822
1823
|
} = useAssociations({
|
|
1823
1824
|
type: containerType,
|
|
@@ -1877,6 +1878,18 @@ function useContainerLinks(args) {
|
|
|
1877
1878
|
}, 0);
|
|
1878
1879
|
return () => clearTimeout(timeout);
|
|
1879
1880
|
}, [loadConversationFiles]);
|
|
1881
|
+
const lastGenericFetch = (0, import_react3.useRef)({
|
|
1882
|
+
key: conversationKey,
|
|
1883
|
+
at: null
|
|
1884
|
+
});
|
|
1885
|
+
(0, import_react3.useEffect)(() => {
|
|
1886
|
+
const previous = lastGenericFetch.current;
|
|
1887
|
+
lastGenericFetch.current = { key: conversationKey, at: genericFetchedAt };
|
|
1888
|
+
if (!conversationKey || genericFetchedAt == null) return;
|
|
1889
|
+
if (previous.key !== conversationKey || previous.at == null) return;
|
|
1890
|
+
if (previous.at === genericFetchedAt) return;
|
|
1891
|
+
void loadConversationFiles();
|
|
1892
|
+
}, [conversationKey, genericFetchedAt, loadConversationFiles]);
|
|
1880
1893
|
const conversationFiles = conversationResult?.key === conversationKey ? conversationResult.files : [];
|
|
1881
1894
|
const conversationFileError = conversationResult?.key === conversationKey ? conversationResult.error : null;
|
|
1882
1895
|
const conversationFileStatus = outgoing || containerType !== "conversation" ? "idle" : conversationResult?.key !== conversationKey ? "loading" : conversationResult.loading ? "loading" : conversationFileError ? "error" : "ready";
|