0.8.62RELEASE NOTES

Outside-click hook ownership

Preserve the familiar hook shape

A direct React createRef call lowers to existing null-initialized DOM-ref ownership. A relative outside-click hook can accept that ref and an inline literal setter callback.

The hook owns one static document mousedown listener, checks ref.current.contains(event.target), and removes the same listener in cleanup. Aliases, private callback captures, dynamic events, multiple refs/listeners and mismatched cleanup remain unsupported.

Validation

The ClimateCompatibleGrowth-derived fixture proves inside-click retention, outside-click closure, listener cleanup on conditional removal and fresh remount ownership. A static sibling ships zero JavaScript. No outside-click, listener, ref or callback runtime is added.

npm install @kudzujs/core@^0.8.62