Store primitives + event-bridge + client? for isomorphic nav
- def-store/use-store/clear-stores: OCaml primitives with global mutable registry. Bypasses env scoping issues that prevented SX-level stores from persisting across bytecode module boundaries. - client? primitive: _is_client ref (false on server, true in browser). Registered in primitives table for CALL_PRIM compatibility. - Event-bridge island: rewritten to use document-level addEventListener via effect + host-callback, fixing container-ref timing issue. - Header island: uses def-store for idx/shade signals when client? is true, plain signals when false (SSR compatibility). - web-signals.sx: SX store definitions removed, OCaml primitives replace. Isomorphic nav still fixme — client? works from K.eval but the JIT "Not callable: nil" bug prevents proper primitive resolution during render-to-dom hydration. Needs JIT investigation. 100 passed, 1 skipped, 0 failed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BIN
shared/static/wasm/sx_browser.bc.wasm.assets/sx-6f7dfa09.wasm
Normal file
BIN
shared/static/wasm/sx_browser.bc.wasm.assets/sx-6f7dfa09.wasm
Normal file
Binary file not shown.
Reference in New Issue
Block a user