Skip to content

Conversation

@jkomoros
Copy link
Contributor

@jkomoros jkomoros commented Oct 22, 2025

…ld a specific type of pattern, profile.tsx in the recipes repo.

Not sure if what Claude learned is actually helpful changes to the documentation or not.


Summary by cubic

Clarifies handler binding rules in HANDLERS.md to prevent ReadOnlyAddressError when binding inside derive(), and adds troubleshooting tips for common handler issues to help recipe authors avoid mistakes.

  • New Features
    • Added “Never Create Handler Bindings Inside derive()” with wrong/right examples and the golden rule.
    • Added troubleshooting for ReadOnlyAddressError, handlers not firing, type issues, and data not updating.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Contributor

@seefeldb seefeldb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underlying issue here is missing closure support for derives:

l.77: <ct-button onClick={applyData({ data: extractionResult })}>

it used extractionResult here instead of result, otherwise this would have worked.

it's overall better to not create UI inside derive (inside map is fine and actually common), so that's maybe what we should add to the docs. but the changes claude proposed here are otherwise misleading.

@jkomoros
Copy link
Contributor Author

Got it, I'll close this!

@jkomoros jkomoros closed this Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants