blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
7.05k stars 414 forks source link

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

Open birgittealstrom opened 2 years ago

birgittealstrom commented 2 years ago

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 commented 2 years ago

Inline field refreshing may possibly be broken; interesting.

AB1908 commented 2 years ago

Is this still an issue?

birgittealstrom commented 2 years ago

Is this still an issue?

Yes, I just tested again. It is still an open issue.