File tree 2 files changed +5
-1
lines changed
packages/devtools_app_shared
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ getter.
10
10
` package:devtools_app_shared/service.dart ` library to the
11
11
` package:devtools_app_shared/utils.dart ` library.
12
12
* Fix alignment issues in ` DevToolsClearableTextField ` .
13
+ * Fix a lifecycle issue with ` DTDManager ` .
13
14
14
15
## 0.3.1
15
16
* Bump ` vm_service ` dependency to ` >=13.0.0 <16.0.0 ` .
Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ class DTDManager {
33
33
await disconnect ();
34
34
35
35
try {
36
- _connection.value = await DartToolingDaemon .connect (uri);
36
+ final connection = await DartToolingDaemon .connect (uri);
37
37
_uri = uri;
38
+ // Set this after setting the value of [_uri] so that [_uri] can be used
39
+ // by any listeners of the [_connection] notifier.
40
+ _connection.value = connection;
38
41
_log.info ('Successfully connected to DTD at: $uri ' );
39
42
} catch (e, st) {
40
43
onError? .call (e, st);
You can’t perform that action at this time.
0 commit comments