obsidian-dataview
obsidian-dataview copied to clipboard
Inline query result display does not update on value change
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
dataview only update if you close and reopen the file or you change the query
Interesting - I guess the page renderer must have broken and the refresh is not going through.
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).
if someone can give me pointers where to start investigating I'm willing to do some digging. I'm encountering this issue as well
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).
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.
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