Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for hot reloading while maintaining the application state. #1748

Closed
Hawmex opened this issue Sep 10, 2022 · 2 comments
Closed

Add support for hot reloading while maintaining the application state. #1748

Hawmex opened this issue Sep 10, 2022 · 2 comments
Labels
status-blocked Blocked from making progress by another (referenced) issue

Comments

@Hawmex
Copy link

Hawmex commented Sep 10, 2022

Currently, webdev supports hot restart. But developing in this mode gets difficult as applications grow. It would be nice to see hot reloading without losing state added as a feature.

@annagrin
Copy link
Contributor

annagrin commented Oct 4, 2022

Thank you @Hawmex for the feature suggestion.

Note that dwds is just a proxy between the UI and Chrome that pretends to be a VM. As a result, we do not have access to the heap, which is what the real VM needs to implement stateful hot reload.

As a result, supporting hot reload actually needs to be done in the dev compiler (dwds and webdev would only need minor modifications after, if any):

dart-lang/sdk#46958

Please note that this is a big feature and will take time to design and implement. We are not sure at this time that a reasonable implementation is possible. We don't have it currently planned, but are thinking about investigating it in the future.

Also, please see the conversation in flutter request for the same feature:
flutter/flutter#53041

@kevmoo kevmoo added the status-blocked Blocked from making progress by another (referenced) issue label Nov 28, 2022
@bkonyi
Copy link
Collaborator

bkonyi commented Nov 6, 2024

Closed in favor of #2516

@bkonyi bkonyi closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status-blocked Blocked from making progress by another (referenced) issue
Projects
None yet
Development

No branches or pull requests

4 participants