|
73 | 73 | - We can use `:="{data}"` fro sprae autoinit, since scope has confusing name: `:scope={}`, `:sprae={}`, `:with={}`
|
74 | 74 | -> let's use :prop= for now, since `:={}` can have multiple interpretations
|
75 | 75 |
|
76 |
| -## [ ] What's a use-case for `:={props}` - do we need it? -> likely yes |
| 76 | +## [x] What's a use-case for `:={props}` - do we need it? -> likely yes |
77 | 77 |
|
78 | 78 | * {...props} is useful in react components to pass down all unmentioned or unknown props to children
|
79 | 79 | - but sprae is not about componentization
|
|
690 | 690 | ## [ ] Prop modifiers
|
691 | 691 |
|
692 | 692 | - overall seems code complication without much benefit
|
693 |
| - * [ ] value.bind? value.watch? |
| 693 | + * value.bind? value.watch? |
694 | 694 | - let's wait for use-case: value can be too big to set it every time
|
695 |
| - * [ ] prop.reflect, prop.observe |
| 695 | + * prop.reflect, prop.observe |
696 | 696 | - let's wait for use-case
|
697 |
| - * [ ] prop.boolean, .number, .string, .array, .object |
| 697 | + * prop.boolean, .number, .string, .array, .object |
698 | 698 | - let's wait for use-case
|
699 |
| - * [ ] prop.once, prop.fx ? prop.init? |
| 699 | + * prop.once, prop.fx ? prop.init? |
700 | 700 | - doesn't seem required, let's wait for use case
|
701 |
| - * [ ] prop.change - run only if value changes |
| 701 | + * prop.change - run only if value changes |
702 | 702 | - seems like unnecessary manual optimization that must be done always automatically
|
703 | 703 | ? are there cases where force-update is necessary?
|
704 |
| - * [ ] prop.throttle-xxx, prop.debounce-xxx |
| 704 | + * prop.throttle-xxx, prop.debounce-xxx |
705 | 705 | - let's wait until that's really a problem
|
706 |
| - * [ ] prop.class |
| 706 | + * prop.class |
707 | 707 | ? what's the use-case
|
708 |
| - * [ ] prop.next="" - run update after other DOM updates happen |
709 |
| - * [ ] prop.fx="" - run effect without changing property |
710 |
| - * [ ] x.prop="xyz" - set element property, rather than attribute (following topic) |
711 |
| - * [ ] x.raf="abc" - run regularly? |
712 |
| - * [ ] x.watch-a-b-c - update by change of any of the deps |
713 |
| - * [ ] :x.always - update by _any_ dep change |
714 |
| - * [ ] :class.active="active" |
715 |
| - * [ ] :x.persist="v" |
| 708 | + * prop.next="" - run update after other DOM updates happen |
| 709 | + * prop.fx="" - run effect without changing property |
| 710 | + * x.prop="xyz" - set element property, rather than attribute (following topic) |
| 711 | + * x.raf="abc" - run regularly? |
| 712 | + * x.watch-a-b-c - update by change of any of the deps |
| 713 | + * :x.always - update by _any_ dep change |
| 714 | + * :class.active="active" |
| 715 | + * :x.persist="v" |
716 | 716 | - solvable via nadis
|
717 | 717 |
|
718 | 718 | ## [x] Writing props on elements (like ones in :each) -> nah, just use `:x="this.x=abc"`
|
|
0 commit comments