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
Live/Hot reload for Neutralino applications #288
Comments
Thanks for reporting the issue. This feature request is already there in CLI neutralinojs/neutralinojs-cli#7 This will be added soon |
Perfect, thanks for the response on this one! Maybe it's a good idea to allow the Github discussions for this repository so that the issues don't get polluted with such kind of questions. |
Currently I use It's rather slow compared to something like Flutter's Hot Reload or even Webpack since it rebuilds everytime, but it works and at least I dont't have to manually type the commands... xP |
I use a simple workaround to refresh the window. It works in browser and window mode. For simplicity I just used Mousetrap, but you could add your own event listeners. Download <script src="/assets/lib/mousetrap.min.js"></script>
<script>
// bind F5 key to page reload
Mousetrap.bind('f5', function() {window.location.reload();});
</script> You can also run the refresh in a loop or/and bind an onclick event to a button. |
Hey @raffaelj Nice idea.. I will try to add |
Hey.. I closed this since |
|
Hey.. @jwhijazi you can use |
Thanks for the info. |
2 similar comments
Thanks for the info. |
Thanks for the info. |
Hey.. Sure you can ask more questions. Also, you can discuss your ideas/questions with the entire community via Discord too. |
@shalithasuranga Native apis are not working with react when using |
Hey.. @thehackingknight Are you using the latest version and did you follow this tutorial to enable hot reloading? |
Hi, just discovered Neutralino. Is it possible to develop a React app with neutralino using the benefits of hot module replacement or live reload? It's a bit cumbersome to rebuild the whole app everytime I change a div or test some styles. Please excuse me if I oversee anything from the docs.
Cheers!
The text was updated successfully, but these errors were encountered: