Commit ecde807
authored
fix no-op hot restarts (#311)
Fixes #302
Previously the behavior was pretty broken, after talking with @jacob314 we decided the best thing to do is actually restart the app (even if it doesn't have anything new to load).
I also did some other cleanup to make things more robust:
- Handle errors from the $dartHotRestart call and forward them along
- Return a promise to JS from the `$dartHotRestart` call so that it can be properly awaited (we weren't actually waiting before because it was a dart future, so this may have contributed to race conditions).
- Return an actual boolean result (success/failure) for the `$dartHotRestart` call.1 parent a298f98 commit ecde807
File tree
5 files changed
+4530
-4463
lines changed- webdev
- lib/src/serve
- debugger
- injected
- web
5 files changed
+4530
-4463
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
45 | 58 | | |
46 | 59 | | |
47 | 60 | | |
| |||
0 commit comments