@@ -10,37 +10,6 @@ import {
1010} from "@commontools/common-builder" ;
1111import { h } from "@commontools/common-html" ;
1212
13- /**
14- * Plan to rewrite this on top of recipe stack
15- *
16- * For now assume it won't be sandboxed, so `this` will at runtime refer to the
17- * instance of the Spell. Note though that this is all on opaqueref space, but
18- * the recipe-opaqueref is a transparent wrapper around life cells, so it should
19- * work.
20- *
21- * .compile() will call `recipe` with a callback that constructs all the opaque
22- * refs and so on.
23- *
24- * E.g. this.update({ ... }) should be possible to do, we look up the cells
25- * in our cell table and update them.
26- *
27- * A few changes:
28- * - formulating queries is select(($) => ({ foo: $.foo }))
29- * - would be nicer if we'd instead have this.<state> instead of $.foo?
30- * that's a bunch more work though.
31- * - we could also allow a shortcut like { foo, bar: ["bar", "baz"] }
32- * - addEventHandler just gets the whole state
33- * - addRule needs the builder syntax:
34- * - `event(name)` adds a stream of that name to parameters
35- * - `select(($) => ({ foo: $.foo }))` adds a query to the rule
36- * - `with(schema)` gets all keys from the schema
37- * - `match(condition)` adds a condition to the rule
38- * - First step: Just assume `select`.
39- * - handlers just get values
40- * - event handlers use this.update() without self to update the state
41- * - derive rules just return new values
42- */
43-
4413type Meta = {
4514 category : string ;
4615 submittedAt : string ;
0 commit comments