Open TatriX opened 4 years ago
Another thing: ideally I would like to have something like vue-devtools: So I can inspect state and messages in runtime.
So about live reload. It can either reload the whole page or patch the code live. The best thing ever I used for live reload is Indium. Emacs Javascript Ide. It uses chrome debug protocol. And this protocol has a feature: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setScriptSource You may used it via devtools. Basically you can edit your js source and it will patch it live, recalling functions if needed. It can even update closures, which is impossible if you just patch prototypes. The huge problem with it is that it doesn't work with es modules, so it's practically useless now. And so I wonder, can we make it work in a similar way? It feels possible to do so, because of elm architecture. (@TatriX)
Hello, I think I might had some discussions about redux_dev_tools
and seed_hooks
as well for state-management many months ago as well. Just wanted to mention it because we might be several people thinking about this kind of concepts.
1) I switched to
seed-quickstart
withcargo make watch
and the only thing I miss is reload after compilation. 2) Because rust compiles slowly and I save files often, I quite often want to disable watcher and compile code explicitly. I like to think about this as follows: when I code I callcargo check
via hotkey quite often from my editor (or use inline warnings/errors). When I'm satisfied I callcargo build
again via hotkey and this is myF5
. 3) Most of the time your web app will need to communicate to some backend server. For example I'm usingrocket
. It would be really nice if I could serve client viarocket
somehow. So I only need tocargo run
my server and it will automatically invoke/serve/proxy client viaSeeder
.