Passing signals through dumb components
Options:
- mutable: you must always re-render the template because there is just no way of knowing if re-rendering will produce the same values.
- marking mutable: If marked than same as above.
- passing signals:
- SolidJS can cheat because it can create getters (which are not serializable) We can explore what would it mean to make getters serializable.
- immutable: all component props are always immutable! Must pass stores or QRL for computed values.
Solutions Space
- The callee of the component (not the component itself) knows if a binding is constant or not and should be the one determining it through syntax.
- All bindings are
const
by default
- A binding can become
var
through marker