-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationsplatform-webWeb applications specificallyWeb applications specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"team-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
When the Link widget is used, it attaches some global event listeners. These listeners are leaked when a hot-restart occurs.
My first (failing) attempt was:
developer.registerExtension('ext.flutter.disassemble', (_, __) {
_detachGlobalListeners();
return Future<developer.ServiceExtensionResponse>.value(
developer.ServiceExtensionResponse.result('OK'),
);
});but it throws the following error:
Invalid argument(s): Extension already registered: ext.flutter.disassemble
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationsplatform-webWeb applications specificallyWeb applications specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"team-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team