Unverified Commit c3366a65 authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Set asset directory path only on first hot reload. (#13934)

parent 0a96f96c
......@@ -515,9 +515,13 @@ class HotRunner extends ResidentRunner {
int countExpectedReports = 0;
for (FlutterDevice device in flutterDevices) {
// List has one report per Flutter view.
await device.resetAssetDirectory();
if (_runningFromSnapshot) {
// Asset directory has to be set only once when we switch from
// running from snapshot to running from uploaded files.
await device.resetAssetDirectory();
}
// List has one report per Flutter view.
final List<Future<Map<String, dynamic>>> reports = device.reloadSources(
entryPath,
pause: pause
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment