diff --git a/CLAUDE.md b/CLAUDE.md index d16d252..fe1f4ba 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -82,32 +82,44 @@ src/ **Dependency flow**: `presentation → application → domain ← infrastructure` -## Code Patterns +## Gotchas + +These are non-obvious footguns that will cause bugs if missed. + +**1. `datastar-fetch` event bubbles through the DOM.** When a page has multiple forms with `data-on:datastar-fetch` handlers, each handler fires for events from *any* `@post`/`@get` in the same DOM tree. **Every handler must guard with its own in-progress signal**: + +```html +