Skip to content

Advanced ​

Once the basics are familiar, these pages deal with problems real modules run into.

TopicWhat it solves
Table rows and dom.repeatLists send data, not HTML: put one hidden template row on the page and have Linker clone it with the built-in dom.repeat action
Triggers and listenersWhich events trigger calls, debounce, several triggers on one element, confirmation, refetching on reconnect, listening to cg:* events
Action governanceThe action table is a capability list: the Rust and JS tables, three checks, adding custom actions, review
TimingCall queueing, rev and locks, state before pipeline, then/catch/always, the rescan order after rendering
TestingComponent parity tests, runtime protocol tests, integration tests for Linker components, in-memory SQLite
Syncing with the PHP projectWhat the sync script copies, when to run it, how to verify afterwards
CommandsThe laravel CLI, cargo, npm, the wiki, and grep audits in place of linker:list
Rust API dictionaryThe public types, functions and constants of cg_component and cg_component::runtime

Appendix: Attribute cheat sheet.

Chapters the PHP version has and this one doesn't

The PHP wiki's "Table" and "Charts (amCharts)" pages document those two components; the Rust version hasn't ported them yet, so there are no matching pages. The browser JS (table.js, chart/) is already synced; to port them, follow Porting a new component.