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

Dataview queries not updated when the page is open in the side view #2544

Open
farcaller opened this issue Mar 15, 2025 · 3 comments
Open

Dataview queries not updated when the page is open in the side view #2544

farcaller opened this issue Mar 15, 2025 · 3 comments
Labels
bug Something isn't working.

Comments

@farcaller
Copy link

What happened?

If you drag and drop a note to be open in the sideview, the dataview queries will stop updating. They don't stop updating completely though, seemingly frozen on the day boundaries.

To repro, use any of the queries below and move the note to the sidebar. It will function, but will break on the next day, seemingly indicated the date() function doesn't work properly in the sidebar.

DQL

`$= dv.pages('"test"').length`

will rerender at all times

TASK
WHERE !fullyCompleted
AND file.day < date(today)
GROUP BY file.link

is seemingly stuck on the day when the note was opened (i.e. not progressing over days

LIST
WHERE
created != nil
AND created.year = date(today).year
AND created.month= date(today).month
AND created.day= date(today).day

is stuck in a similar way.

JS

Dataview Version

0.5.67

Obsidian Version

1.8.9

OS

MacOS

@farcaller farcaller added the bug Something isn't working. label Mar 15, 2025
@holroy
Copy link
Collaborator

holroy commented Mar 15, 2025

It's not completely stuck, I believe, but you do need to refresh the view of that sidebar. See #2366

@farcaller
Copy link
Author

#2366 seems relevant but refreshing the note won't cut it for me. Editing the query does fix it, though.

@holroy
Copy link
Collaborator

holroy commented Mar 15, 2025

I do believe executing the command Dataview: Rebuild current view also should work. Even I got that command assigned to a hotkey for the occasional updating of a stale query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants