Shorthand syntax for "Auto" reactions
未關閉
enhancement
- 主要語言
- TypeScript
- 星號
- 176
- 分支
- 9
- PR 合併指標
- 30 天內沒有已合併 PR
描述
"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`.
貢獻指南
評估
這個 Issue 還沒有評估資料。