No auto-reload
Xyndra opened this issue · comments
Problem
I use trunk serve --open
like in the tutorial and it doesn't reload
Steps To Reproduce
Follow the tutorial
Expected behavior
auto-reload
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
- Yew version: 0.20.0
- Rust version: 1.68.2
- Build tool, if relevant: trunk
- OS, if relevant: Windows
Questionnaire
- I'm interested in fixing this myself but don't know where to start
- I would like to fix and I have a solution
- I don't have time to fix this right now, but maybe later
I am not smart enough to fix
This is a bug not of Yew, but of Trunk, file the issue in that repo.
I'm closing this as this is a Trunk issue
I think this is a known issue with trunk. Adding a "cooldown" at the end of the build eats of change events. There's a fix which seems to work for some people, but as trunk's development seems to have stalled again, it is not released in trunk itself, but in trunk-ng
.
With trunk-ng, you can disable the cooldown (using --ignore-cooldown
). If enough people report that that's the fix for them, I would swap around the default and make it "opt-in", instead of "opt-out".