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

Inline dataview query does not reflect changes in YAML immediately #776

Open
birgittealstrom opened this issue Jan 11, 2022 · 1 comment
Open
Assignees

Comments

@birgittealstrom
Copy link

@birgittealstrom birgittealstrom commented Jan 11, 2022

What happened?

Steps to reproduce:

My note looks like this with YAML front matter at the very top:

---
rating: 5
---

And then I have a dataview list query:

LIST WITHOUT ID "Rating: " + rating
WHERE file.name = this.file.name

And a dataview inline query:

This note has the rating metadata: = this.rating. Lorem Ipsum.

And then I do
Then I in YAML manually change the rating variable from 7 to e.g. 5.

Expected result

I expected the Preview Mode to reflect the change in metadata variables immediately in an dataview inline query, as it is the case today for e.g. dataview list queries.

Actual result

Instead the change is not reflected immediately in the dataview inline query = this.rating in the note in Preview. If I have the same note open twice at the same time (one in Edit Note and the other in Preview Mode), then the change is not reflected immediately in the note in Preview Mode. But if I close the Preview Mode note down and open it again in Preview Mode, then the change is implemented.

The change in the rating variable is reflected correctly and immediately in dataview list queries in the note.

DQL

`= this.rating`

JS

No response

Dataview Version

0.4.21

Obsidian Version

0.13.19

OS

MacOS

@blacksmithgu
Copy link
Owner

@blacksmithgu blacksmithgu commented Jan 19, 2022

Inline field refreshing may possibly be broken; interesting.

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

Successfully merging a pull request may close this issue.

None yet
2 participants