File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
website/src/content/docs/async Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ of the signal. This callback is converted into a Computed signal.
22
22
final movieId = signal('id');
23
23
late final movie = computedAsync(() => fetchMovie(movieId()));
24
24
```
25
+
25
26
::: caution
26
27
It is important that signals are called before any async gaps with await.
27
28
:::
@@ -39,7 +40,7 @@ compute the value of the signal every time one of the signals changes.
39
40
40
41
``` dart
41
42
final movieId = signal('id');
42
- late final movie = computedFrom(args, ( [movieId]) => fetchMovie(args.first));
43
+ late final movie = computedFrom([movieId], (args ) => fetchMovie(args.first));
43
44
```
44
45
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.
You can’t perform that action at this time.
0 commit comments