Open pczern opened 1 month ago
It works if I add the script manually to my layout-default
, but I think it should be injected automatically for all pages?
<script>new EventSource("http://localhost:3001/internal/reload").onmessage = () => { location.reload() }</script>
What is the Content-Type header in your handler's response? The proxy only tries to inject the script in responses that are advertised as text/html
.
Live Reload refresh isn't working in the browser, the go app rebuilds on any changes but the browser isn't reloading.
With GoFiber I am creating a server like
Rendering the page on route /
but when I change anything in "page/index" I have to manually refresh. Checking the source code in the browser via "View Source" shows no injected script for live reload. The
layout-default
I am rendering the page with contains a<body>
element.