Closed wjharney closed 3 months ago
Indeed, that's a bug. I'm investigating the best way to fix it. Will be fixed in the next version of Lume. Thanks!
I just uploaded a fix.
If you want to test it, you can upgrade Lume to the latest development version deno task lume upgrade --dev
.
It will be available in the next stable version (v2.2.4)
Version
v2.2.2
Platform
macOS
What steps will reproduce the bug?
The expected behavior of HMR is that creating, updating, or deleting any file will result in changes being reflected in the browser without needing to refresh the page or restart the server. However, when creating or deleting a
_data.yml
file that has an associated remote file, the expected changes are not seen unless the server is restarted.Steps to reproduce
deno task serve
to start the server.echo 'layout: layouts/replacement.vto' > posts/_data.yml
to change the layout used for the post.Expected Result: The heading should be "Replacement Template".
Actual Result: The heading is "Base Template".
posts/_data.yml
.Expected Result: The heading should be "Base Template".
Actual Result: Neither template is used; the page only contains the post content, "Hello World".
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
The page should be updated without needing to reload the page or restart the server.
What do you see instead?
The changes aren't reflected unless the server is restarted.
Additional information
posts/_data.yml
works as expected._data.yml
to point to that layout works as expected._data.yml
that does not have a remote file associated works as expected.