obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Inline dataview query does not reflect changes in YAML immediately

Open birgittealstrom opened this issue 3 years ago • 3 comments

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

birgittealstrom avatar Jan 11 '22 11:01 birgittealstrom

Inline field refreshing may possibly be broken; interesting.

blacksmithgu avatar Jan 19 '22 22:01 blacksmithgu

Is this still an issue?

AB1908 avatar Jul 29 '22 07:07 AB1908

Is this still an issue?

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

birgittealstrom avatar Aug 27 '22 20:08 birgittealstrom