https://github.com/simenandre/templ-watch-bug
Reproduction of templ issue
https://github.com/simenandre/templ-watch-bug
Last synced: about 1 year ago
JSON representation
Reproduction of templ issue
- Host: GitHub
- URL: https://github.com/simenandre/templ-watch-bug
- Owner: simenandre
- Created: 2024-10-16T11:34:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T12:36:47.000Z (over 1 year ago)
- Last Synced: 2025-03-27T04:51:16.076Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# templ-watch-bug
Reproduction of templ issue
The issue happends with you change something while using `templ generate --watch`.
This repository has a simple example of the issue.
## Steps to reproduce
1. Clone this repository
2. Run `task dev` to start the `templ generate --watch` (and go server)
3. Open the browser and go to `http://localhost:8080` (or `http://localhost:7331` for the proxyed version)
4. Uncomment `@aComponent` in `templates/landing.templ` and save the file
5. Reload the browser window and the component will be rendered wrong
## Notes on the setup
I wired up a simple Taskfile to show the version of Taskfile, and how it all runs
in my environment.