alloc / alloc/wana

Shorthand syntax for "Auto" reactions

Đang mở
#11 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.