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

Inline query result display does not update on value change

Open robfletcher opened this issue 1 year ago • 6 comments

What happened?

If I change a frontmatter value, inline queries that refer to it do not update unless I edit the paragraph containing them.

For example:

---
foo: 1
---

`= this.foo`

If I switch into editing mode, change the value of foo in the frontmatter, then switch back to reading mode, the query result still displays the old value. If I then edit text around the query, it will update. Editing other areas of the document does not update the value.

DQL

No response

JS

No response

Dataview Version

0.5.41

Obsidian Version

0.15.9

OS

MacOS

robfletcher avatar Aug 06 '22 03:08 robfletcher

dataview only update if you close and reopen the file or you change the query

jasonho1308 avatar Aug 06 '22 17:08 jasonho1308

Interesting - I guess the page renderer must have broken and the refresh is not going through.

blacksmithgu avatar Aug 06 '22 23:08 blacksmithgu

Is it wrong to hope for the Force Refresh All Views and Blocks to also refresh the inline dataviewjs queries? It's not happening today (in version 0.5.55).

holroy avatar Jan 27 '23 01:01 holroy

if someone can give me pointers where to start investigating I'm willing to do some digging. I'm encountering this issue as well

epsilonhalbe avatar Oct 21 '23 18:10 epsilonhalbe

I'm trying to display date modified (the file exported as a site).

> [!info] This document will be kept up to date with progress and any changes.
> Last updated `=dateformat(this.updated, "dd-MM-yyyy")` (`=durationformat(date(today) - this.updated, "d")` days ago).

image

It does not update on clearing cache, force refresh, note close/re-open or even Obsidian restart. On restart, it shows no values at all. After re-opening the note, it still comes up with the values it had when the query was first written/run.

I believe there could be a specific issue when using queries within callouts.

filcuk avatar Nov 23 '23 11:11 filcuk

Any updates on this issue?

I have the same situation, when inline dataviewjs updates only when I change to Reading view or click on it, but block dataviewjs automatically updates by interval or something like this

ctretyak avatar Apr 30 '24 06:04 ctretyak