bug: templ generate --watch --proxy
triggers 2 browser reload events
#891
Labels
bug
Something isn't working
Before you begin
Done.
Describe the bug
For some reason
templ generate --watch
processes same file multiple times on a single save. As result, it triggers several page reloads per change. I disabled all formatters to ensure there's nothing to emit another fs event, but it didn't help.I've tried to reproduce it inside devcontainer (used
mcr.microsoft.com/devcontainers/go:1-1.22-bookworm
) and everything works just fine. So I guess the issue is with macOS FS events stuff.To Reproduce
templ generate --watch -v --proxy="http://localhost:8080" --cmd="go run cmd/myapp/main.go"
.templ
fileExpected behavior
It should emit only one reload event.
Screenshots
Untitled.mov
Logs
None.
templ info
outputDesktop (please complete the following information):
go version
): go1.23.0 darwin/arm64gopls
version (gopls version
): v0.16.1Additional context
None.
The text was updated successfully, but these errors were encountered: