We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents def666f + 75bddeb commit 4dd3585Copy full SHA for 4dd3585
website/src/content/docs/async/computed.md
@@ -22,6 +22,7 @@ of the signal. This callback is converted into a Computed signal.
22
final movieId = signal('id');
23
late final movie = computedAsync(() => fetchMovie(movieId()));
24
```
25
+
26
:::caution
27
It is important that signals are called before any async gaps with await.
28
:::
@@ -39,7 +40,7 @@ compute the value of the signal every time one of the signals changes.
39
40
41
```dart
42
-late final movie = computedFrom(args, ([movieId]) => fetchMovie(args.first));
43
+late final movie = computedFrom([movieId], (args) => fetchMovie(args.first));
44
45
46
Since all dependencies are passed in as arguments there is no need to worry about calling the signals before any async gaps with await.
0 commit comments