@headless-tree/core 0.0.0-20250818221556 → 0.0.0-20250820151548
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 +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
- package/src/features/sync-data-loader/types.ts +7 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -259,7 +259,12 @@ type SyncDataLoaderFeatureDef<T> = {
|
|
|
259
259
|
};
|
|
260
260
|
treeInstance: {
|
|
261
261
|
retrieveItemData: (itemId: string) => T;
|
|
262
|
-
|
|
262
|
+
/** Retrieve children Ids. If an async data loader is used, skipFetch is set to true, and children have not been retrieved
|
|
263
|
+
* yet for this item, this will initiate fetching the children, and return an empty array. Once the children have loaded,
|
|
264
|
+
* a rerender will be triggered.
|
|
265
|
+
* @param skipFetch - Defaults to false.
|
|
266
|
+
*/
|
|
267
|
+
retrieveChildrenIds: (itemId: string, skipFetch?: boolean) => string[];
|
|
263
268
|
};
|
|
264
269
|
itemInstance: {
|
|
265
270
|
isLoading: () => boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -259,7 +259,12 @@ type SyncDataLoaderFeatureDef<T> = {
|
|
|
259
259
|
};
|
|
260
260
|
treeInstance: {
|
|
261
261
|
retrieveItemData: (itemId: string) => T;
|
|
262
|
-
|
|
262
|
+
/** Retrieve children Ids. If an async data loader is used, skipFetch is set to true, and children have not been retrieved
|
|
263
|
+
* yet for this item, this will initiate fetching the children, and return an empty array. Once the children have loaded,
|
|
264
|
+
* a rerender will be triggered.
|
|
265
|
+
* @param skipFetch - Defaults to false.
|
|
266
|
+
*/
|
|
267
|
+
retrieveChildrenIds: (itemId: string, skipFetch?: boolean) => string[];
|
|
263
268
|
};
|
|
264
269
|
itemInstance: {
|
|
265
270
|
isLoading: () => boolean;
|
package/package.json
CHANGED
|
@@ -18,7 +18,13 @@ export type SyncDataLoaderFeatureDef<T> = {
|
|
|
18
18
|
};
|
|
19
19
|
treeInstance: {
|
|
20
20
|
retrieveItemData: (itemId: string) => T;
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
/** Retrieve children Ids. If an async data loader is used, skipFetch is set to true, and children have not been retrieved
|
|
23
|
+
* yet for this item, this will initiate fetching the children, and return an empty array. Once the children have loaded,
|
|
24
|
+
* a rerender will be triggered.
|
|
25
|
+
* @param skipFetch - Defaults to false.
|
|
26
|
+
*/
|
|
27
|
+
retrieveChildrenIds: (itemId: string, skipFetch?: boolean) => string[];
|
|
22
28
|
};
|
|
23
29
|
itemInstance: {
|
|
24
30
|
isLoading: () => boolean;
|