Local development setup #134
-
Hi! Cool project! I tried running Once I make some changes e.g. card title in CardImage.kt code gets recompiled (I see that in
Please tell me what I'm doing wrong and preferably add some simple instructions for a developer in README.md. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Thanks a lot for reaching out! You did nothing wrong, everything is exactly as you said. The hot reloading just doesn't seem to work consistently, and I simply don't rely on it at all. To be honest I did not investigate too much in this respect, because even if reloading is properly triggered, there is currently no mechanism to restore the client state (nor the session on server-side for that matter, because it is currently linked to the websocket connection). This reconnection ability is something I should work on, it is tracked here: #10 I could definitely add some instructions for local development, I just didn't expect people would want to contribute so far 😄 PS: how did you find this project, by the way? |
Beta Was this translation helpful? Give feedback.
Hi! Thanks a lot for reaching out!
You did nothing wrong, everything is exactly as you said.
The hot reloading just doesn't seem to work consistently, and I simply don't rely on it at all.
I just stop-and-rerun
./gradlew :sw-ui:browserDevelopmentRun
when I make client-only changes.Maybe I did something wrong in the setup myself.
To be honest I did not investigate too much in this respect, because even if reloading is properly triggered, there is currently no mechanism to restore the client state (nor the session on server-side for that matter, because it is currently linked to the websocket connection).
So you could only work on the home page with hot reloading, all other pages would req…