docs(agents): add ko-* static-expression freeze gotcha to guide.md#388
Conversation
llms.txt line 47 warns 'inline expressions freeze' but guide.md had
no equivalent entry. NativeProvider.ts:44 confirms the behaviour:
non-observable values are wrapped as () => value (static). This
catches the common silent bug where ko-text={obs()} is written
instead of ko-text={obs}.
Adversarial pass: Explore subagent. Result: clean — confirmed gap
in guide.md Gotchas, NativeProvider source matches claim, no
references to non-existent APIs.
https://claude.ai/code/session_018q2onX3ZYrxrr768L26hSH
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughDocumentation update to the TKO guide adding a "Gotchas" entry. The clarification warns that JSX ChangesJSX Binding Documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Adds one bullet to the
## Gotchassection oftko.io/public/agents/guide.md:Why
llms.txtalready warns "Derivedko-*values must stay observable/computed — inline expressions freeze" (line 47), butguide.md's## Gotchassection had no equivalent entry — the two agent-facing docs were out of sync.NativeProvider.ts:44confirms the behaviour:Non-observable values are wrapped as a static
() => value, soko-text={obs()}silently passes a plain string and the DOM never updates. This is a common, invisible mistake in agent-generated TSX.Scope
Single-line addition to one agent-facing doc file. No code changes, no API changes, no changeset needed.
https://claude.ai/code/session_018q2onX3ZYrxrr768L26hSH
Generated by Claude Code
Summary by CodeRabbit
ko-*attributes to ensure reactive DOM updates work correctly, including guidance on handling derived expressions with computed properties.