Replies: 4 comments
-
From
This relates to the Do you have any insights for this? How does dawn work? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. As I've played around with Example: // after each reload, our state is lost.
int count = 0; // assume that it's incremented after some clicks in the app. import 'package:js/js.dart';
// after each reload, our state is maintained.
@JS()
external int count; // assume that it's later initialized and incremented after some clicks in the app. Maybe we can achieve a stateful hot reload with this approach. But the next issue is that With all that said, if Dart had behaved the same in the JavaScript environment and the Dart VM, Dawn and Jaspr could support a stateful hot reload by default. |
Beta Was this translation helpful? Give feedback.
-
After all, it is possible to implement a stateful hot reload since Vue has done it. |
Beta Was this translation helpful? Give feedback.
-
Cool, thanks for this. I will try it out a bit, although the runtimeType issue might become a problem but let's see. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions