Shorthand syntax for "Auto" reactions
Ouverte
enhancement
- Langage dominant
- TypeScript
- Étoiles
- 176
- Forks
- 9
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
"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`.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.