-
-
Notifications
You must be signed in to change notification settings - Fork 948
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
Hotreload does not work on Windows desktop #1566
Comments
web does work, I created another project by the template but choose web, then
|
If you are interested in debugging this, I would start by checking if the channel connects and the event is sent correctly by the CLI here and received correctly the desktop renderer here. It could be that the path to the channel that the two use to communicate is incorrect on windows or some serialization error occurs. |
Since the code of packages/cli/src/server/desktop/mod.rs changed a lot, I build my test project with local v0.5 (both One minor issue, the desktop windows disappears and then appears again during the hot reload, and the window changes its screen position when I have multiple monitors (from one monitor to the other). It does not look like a hot reloading but somewhat cold reloading. |
I also found several related issues:
I think it's misleading, it should read like
This error message is from CLI, so CLI is surely being used, but |
What part of the rsx are you trying to hot reload? |
I debugged a lit bit, it seems to be related to this upstream issue: notify-rs/notify#113 I tested with deferent editors: notepad, vscode, it seems that more file change events are notified by vscode than notepad. If a file is changed and saved in VSCode, about 4 events are received. During those multiple (or duplicated) file changes, one of the Maybe some debounce can be added to the |
Problem
I created a test project by
dx
and try to run the code on Windows desktop, but when I edit the rsx code, the UI does not change.Steps To Reproduce
Steps to reproduce the behavior:
dx create
(which uses template of https://github.com/dioxuslabs/dioxus-template.git)dx serve --hot-reload --platform desktop
, the UI displaysExpected behavior
The displaying UI should change automatically
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: