File tree Expand file tree Collapse file tree
packages/devtools_app_shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ getter.
1010` package:devtools_app_shared/service.dart ` library to the
1111` package:devtools_app_shared/utils.dart ` library.
1212* Fix alignment issues in ` DevToolsClearableTextField ` .
13+ * Fix a lifecycle issue with ` DTDManager ` .
1314
1415## 0.3.1
1516* 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 {
3333 await disconnect ();
3434
3535 try {
36- _connection.value = await DartToolingDaemon .connect (uri);
36+ final connection = await DartToolingDaemon .connect (uri);
3737 _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;
3841 _log.info ('Successfully connected to DTD at: $uri ' );
3942 } catch (e, st) {
4043 onError? .call (e, st);
You can’t perform that action at this time.
0 commit comments