Repository navigation
feat: share binding hook sub-slots - #818
Merged
Merged
Conversation
trueadm
marked this pull request as ready for review
August 21, 2026 21:33
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
subSlotandcreateSubSlothelpers to Octane's client, server, and universal entry pointsCloses #810.
Implementation
createSubSlotkeeps the hot cache-hit path to parent/tag map lookups and supports the small set of compatibility policies already present across bindings. The defaultsubSlotpreserves the commonparent:tagglobal-symbol behavior; configured factories cover namespaced descriptions, stable slotless children, and factory-local symbols.The migration removes all remaining binding-owned
function subSlotimplementations without changing hook call sites.Validation
pnpm typecheckNODE_OPTIONS=--max-old-space-size=8192 pnpm test— 2,262 files and 22,727 tests passedpnpm format:files:checksub-slot.test.tsrun in development and production projects — 12 tests passednode benchmarks/bench.mjs --quick hook-store-composition— semantic checksums, lifecycle counts, and hook-work counts unchanged; no quick-run regression signalpnpm syncRisk
Low. The helper is pure symbol derivation with per-factory caches, and the migration retains each binding's prior symbol-description and identity policy. Client, server, universal, and universal-native exports are covered.
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Hook slot identity is load-bearing for composed binding state. The migration is intended to preserve each package’s prior symbol policy, but a mismatch would collide hook state across many bindings.
Overview
Adds shared
subSlot/createSubSlothelpers on Octane’s client, server, and universal entries, then replaces every binding-local copy with that factory.Bindings keep their existing slotless fallbacks, namespaces, and global vs local symbol identity via options (
slotlessPrefix,tagPrefix,global, etc.). Hook call sites are unchanged.Also updates the React-bridge skill to import
subSlotfromoctaneinstead of inlining a naiveSymbol.forhelper.Reviewed by Cursor Bugbot for commit 6f4b5ba. Bugbot is set up for automated code reviews on this repo. Configure here.