Documentation
¶
Rendered for js/wasm
Overview ¶
Command app is the render-thread half of v5's two-artifact packaging (plan item P3.10).
The whole point of this binary is what it does NOT contain. It renders, holds resident projections, and issues commands — and it imports no database engine, so wazero and SQLite never enter app.wasm. M5 measures the result.
The domain half is ../services, which does import the engine and is compiled separately into services.wasm for a worker.
It is also the reference for the two rules that make a worker-backed app work at all, both of which are easy to get wrong in ways that look like a hung page rather than a bug:
- Never call a command from a DOM callback. See runCommand.
- Apply the result through ui.PostAsync. See applyResult.
Click to show internal directories.
Click to hide internal directories.