You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe they added this feature later I don't know but it should be better since it's native (i guess). Can't this plugin just send an event to the browser when the server starts instead of watching files and dealing with refreshing the server as well
What do you think about it?
The text was updated successfully, but these errors were encountered:
That would also be viable, just subtleties to the approach!
If you rely on the --watch flag (REF: https://deno.land/manual/getting_started/command_line_interface#watch-mode) then you will be completely restarting your server, it's a fancy way of killing the program and starting it again. It means you will have to rerun any bootstrapping, wait for the server to be live again etc.
In simple scenarios there isn't much between this and the file watcher built into this module, but if imagine your startup is costly / slow then it may not be as practical for fast development (e.g. say have to do some handshake with a DB and other whatnot).
Now if you are wanting to work on the server code itself, then really restarting the server is more desireable - but the use-case I wrote this module for was simple reload of the browser while working on front-end code 🙂
Alternative dev-tooling is always awesome, so be cool to see your idea as a Deno module some day 🎉
I have the same purpose actually, I'm working on my jsx front-end code (which is ssr rendered) but for some strange reason when editing a component props, removing it from the dom etc... the updates won't have any effect even after manually reloading the page.
With the --watch flag though the rendered html is updated and so the browser shows me the new updated components.
Maybe we have something set up differently I'm not sure.
Anyway I have a simple project for now so I'll just stick with the --watch flag (I also added the --no-check flag to make the server restart way faster!)
Thanks for your great module anyway! Really useful!
Maybe they added this feature later I don't know but it should be better since it's native (i guess). Can't this plugin just send an event to the browser when the server starts instead of watching files and dealing with refreshing the server as well
What do you think about it?
The text was updated successfully, but these errors were encountered: