tree: d57459abd717cf56300f061df10c9e0b1712fa0e [search]
  1. examples/
  2. src/
  3. tests/
  4. Cargo.toml
  5. README.md
  6. README.zh-CN.md
platform/ui-js/README.md

maka-ui-js

简体中文

Executes JavaScript component callbacks for maka-ui-runtime. execution configures one sleeping background worker with bounded admission. Activation, mount, update, input, capture and close all use asynchronous jobs. Reducers remain bounded synchronous computations; they propose candidates from the original committed state and do not await I/O.

The Rust UI owner validates and commits each resulting batch. A late result cannot revive a retired mount. Native input resources, exact mutation receipts and accepted execution cleanup stay with their original owners; moving execution to the worker does not acknowledge their completion.

Invocation jobs retain shared immutable state and props instead of copying their JSON trees on the UI owner. Argument validation and encoding run on the worker and read those snapshots directly. JavaScript still receives independent JSON values, so guest mutations cannot modify the retained Rust snapshots.

Source · Cargo manifest