Skip to content

Commit 7ef2b2f

Browse files
committed
Update memo and tracker for I8 fix (defc auto-wrap stale props)
1 parent 6e1f558 commit 7ef2b2f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.dev/memo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Session handover document. Read at session start.
44

55
## Current State
66

7-
- **All 25 phases + I7 complete**. ~1500 vitest + 14 Playwright E2E, types clean.
7+
- **All 25 phases + I7 + I8 complete**. ~1500 vitest + 14 Playwright E2E, types clean.
88
- Var coverage: 330/330 (100%). Build: kiso ~141KB, su ~17KB. npm publish dry-run verified.
99
- Showcase: `showcase/`. Docs: numbered guide (001-011), unified API ref.
1010

.dev/tracker.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ All previously tracked issues (I1–I6) have been resolved. See `archive/bugs-fi
267267
Fixed: `into` now supports 3-arity `(into to xform from)` via `transduce`.
268268
Full transducer support: `Reduced`, `transduce`, `completing`, `map`/`filter`/`take` 1-arity.
269269

270+
### ~~I8: defc auto-wrap creates stale closures for prop values~~ (RESOLVED)
271+
272+
Fixed: `injectPropsIntoAutoWrap` moves props destructuring `(let* [{:keys ...} @props-atom])`
273+
inside the auto-wrapped `(fn* [] ...)`, so `@props-atom` runs inside bind's effect. Form-2
274+
components (user returns fn explicitly) keep destructuring outside. Also branched mount()
275+
on renderFn return type: function → bind() handles reactivity, plain hiccup → addWatch.
276+
270277
## Workarounds (Platform Constraints)
271278

272279
- **defc names require hyphen**: Custom Element names require a hyphen (web standard). `(defc counter ...)` fails — use `(defc sample-counter ...)`.

0 commit comments

Comments
 (0)