This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
Store.query
~import std/store.queryKoru Standard Library: Reactive Stores — the `query` event.
store.query.kz · 1 tors
Koru Standard Library: Reactive Stores — the `query` event.
Joined via `~part query` in store.kz; merged into the store module at load.
`claims_descendants`: query MUST fire before its own `! query <row> |> body`
branch is walked. Otherwise print.ln (deeper, so depth-first-first) resolves
the body's `{{ field }}` holes while the row binding isn't in scope yet
(pre-transplant), leaving a raw template. query dodges this by having `create`
drive the transplant early (on `new`); sweep drives its OWN transplant at the
site, so it must claim its descendants to win the same race.
// Koru Standard Library: Reactive Stores — the `query` event.
// Joined via `~part query` in store.kz; merged into the store module at load.
//
// `claims_descendants`: query MUST fire before its own `! query <row> |> body`
// branch is walked. Otherwise print.ln (deeper, so depth-first-first) resolves
// the body's `{{ field }}` holes while the row binding isn't in scope yet
// (pre-transplant), leaving a raw template. query dodges this by having `create`
// drive the transplant early (on `new`); sweep drives its OWN transplant at the
// site, so it must claim its descendants to win the same race.
~[keyword|comptime|transform|claims_descendants] pub tor query {
expr: Expression,
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
reporter: std/compiler:*ErrorReporter,
allocator: std.mem.Allocator
} -> SiteResult