Commit 367e1ab
committed
fix: make the reactive example in the README run
The lead actor declared observable :remaining and the ERB beside it
rendered that value in a span while a component observed :holds. Neither
worked. A scalar span raises ArgumentError unless the observable is
declared broadcast: :value, and a component dependency must itself be a
declared observable or ComponentRegistration raises
UnknownComponentDependency.
remaining now carries broadcast: :value and holds is declared, which is
also the clearer teaching example: one observable opts into sending its
value to every authorized subscriber, the other only invalidates, which
is what the paragraph under it describes.
Verified against this branch rather than read: broadcasts_observable_value?
is true for remaining, holds resolves as a dependency, and reserve,
duplicate reserve, and expire behave as the text claims.1 parent 499d874 commit 367e1ab
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
0 commit comments