Shorthand syntax for "Auto" reactions
Đang mở
enhancement
- Ngôn ngữ chính
- TypeScript
- Star
- 176
- Fork
- 9
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
"Reactions" are unobserved side effects in response to an observed computation.
The current way to do this:
```ts
auto(() => {
// Observed computation here
noto(() => {
// Unobserved side effects here
})
})
```
The proposed way to do this:
```ts
auto(
() => {
// Observed computation here
},
result => {
// Unobserved side effects here
}
)
```
The bonus (of course) being that you don't need to import `noto`.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.