@splicetree/plugin-lazy-load 0.1.1 → 0.3.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,5 +1,9 @@
1
1
  # @splicetree/plugin-lazy-load
2
2
 
3
+ ## 0.3.0
4
+
5
+ ## 0.2.0
6
+
3
7
  ## 0.1.1
4
8
 
5
9
  ### Patch Changes
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ const lazyLoad = {
33
33
  if (children?.length) {
34
34
  ctx.tree.appendChildren(id, children);
35
35
  for (const c of children) {
36
- const childId = String(Reflect.get(c, ctx.tree.options?.keyField ?? "id"));
36
+ const childId = String(Reflect.get(c, ctx.tree.options?.configuration?.keyField ?? "id"));
37
37
  const childNode = ctx.tree.getNode(childId);
38
38
  if (childNode) applyLazyOverrides(childNode);
39
39
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@splicetree/plugin-lazy-load",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.3.0",
5
5
  "author": {
6
6
  "email": "michael.cocova@gmail.com",
7
7
  "name": "Michael Cocova"
@@ -23,7 +23,7 @@
23
23
  "access": "public"
24
24
  },
25
25
  "devDependencies": {
26
- "@splicetree/core": "0.1.1"
26
+ "@splicetree/core": "0.3.0"
27
27
  },
28
28
  "scripts": {
29
29
  "dev": "tsdown --watch",
package/src/index.ts CHANGED
@@ -101,7 +101,7 @@ export const lazyLoad: SpliceTreePlugin = {
101
101
  if (children?.length) {
102
102
  ctx.tree.appendChildren(id, children)
103
103
  for (const c of children) {
104
- const childId = String(Reflect.get(c, ctx.tree.options?.keyField ?? 'id'))
104
+ const childId = String(Reflect.get(c, ctx.tree.options?.configuration?.keyField ?? 'id'))
105
105
  const childNode = ctx.tree.getNode(childId)
106
106
  if (childNode) {
107
107
  applyLazyOverrides(childNode)