Use the ORM React signal adapter instead of serializing table rows #58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/deep-signal-react-bridge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A single row edit currently triggers full-collection JSON serialization so the table projection can detect a change in its effect dependencies. The manual React render counter also duplicates the signal adapter already used by the ORM's own
useShapehook.useRuntimeShapenow binds the existing subscription throughuseDeepSignal, andProjectiondepends on the adapter's changing data identity. This removes the row-collection snapshot and manual watcher/render counter. The graph/schema-aware subscription lifecycle, unpooled runtime-shape handling, error reporting, loading state and late-completion cleanup remain in place. The direct signal dependency is pinned to the exact version already used by the ORM; no SDK version is upgraded.Related to #52. This removes its collection-serialization bottleneck; pagination, bounded rendering, relationship option construction and whole-collection Atomic ingestion remain outstanding. It complements #57's draft reconciliation and is based independently on current main.
Validation: frozen-lockfile installation, all 332 unit tests, six typechecks, all 12 production builds, and 28 browser tests across the Native, Atomic, Joep and template table apps passed. New coverage writes through distinct real ORM subscriptions against the browser test engine and checks incoming scalar edits, nested set additions/removals, and row creation/deletion. Existing coverage verifies local edits and runtime schema replacement. Broker-backed synchronization tests and large-collection benchmarks were not run.