Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Front Matter Data are only shown after second "save" while running --serve –incremental mode #3397

Closed
Gr0t3Man opened this issue Aug 1, 2024 · 1 comment · Fixed by #3421
Assignees
Labels

Comments

@Gr0t3Man
Copy link

Gr0t3Man commented Aug 1, 2024

Operating system

Pop!_OS 22.04 LTS

Eleventy

3.0.0-beta.1

Describe the bug

When running eleventy in --serve –incremental mode the changes mode to the Front Matter Data aren't shown after the first "save" of the file. Only after a second save, the changes are visible in the browser.
I first notices this behavour in 3.0alpha17 and 3.0.0-beta.1 shows the same results.

When running without the –incremental option, the changes are direct visible, after a save.

I have asked in the discord channel if others can reproduce this issue. And others seeing the same problem.

Reproduction steps

Create a file test.njk

title: This a title
text: The first textblock of the page

{{title}}

{{text}}

After starting npx @11ty/eleventy --serve --incremental.

The page shows:

This a title
The first textblock of the page

Step 2:
When i add some text to the frontmatter data to:

title: This a title
text: The first textblock of the page. With a second sentence.

And save the file, the screens still shows the old text.

Step 3:
Making an second change to the frontmatter data to:


title: This a title, extra long title!
text: The first textblock of the page. With a second sentence.

And save the file, the screen displays:
This a title
The first textblock of the page. With a second sentence.

Step 4:
Doing a second save (no text changes), the screen displays:
This a title, extra long title!
The first textblock of the page. With a second sentence.

Expected behavior

To display the changes directly in the browser, after saving the file.

Reproduction URL

No response

Screenshots

No response

@zachleat zachleat added bug and removed needs-triage labels Aug 1, 2024
@zachleat zachleat added this to the Eleventy 3.0.0 milestone Aug 1, 2024
@zachleat zachleat self-assigned this Aug 23, 2024
@zachleat zachleat mentioned this issue Aug 23, 2024
@zachleat
Copy link
Member

Shipping with 3.0.0-alpha.19 and 3.0.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants