question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug report: excessive refreshing

See original GitHub issue

What happened?

the query refreshes too much, when editing a file in another pane.

https://user-images.githubusercontent.com/38974541/167502627-87a7b1b2-78cf-4fe9-87e2-01caafb38600.mov

DQL

No response

JS

let text
let groups = dv.pages('#project')
	.where(p => p.date?.toISODate() != time && !p.file.path.includes('templates'))
	.sort(p => p.impact)
	.sort(p => p.class, 'desc')
	.sort(p => p.deadline)
	.sort(p => p.file.tasks.completed.includes(false),'desc')
	.sort(p => p.date?.toISODate() > time)
	.groupBy(p => p.theme)

for (let group of groups.sort(g => g.key, 'desc')) {
	if (!group.key) {
		dv.header(4, 'ST')
	} else {
		dv.header(4, group.key)	
	}
	dv.list(group.rows.map(t => {
		if (!t.file.tasks.completed.includes(false)) {
			text =  '☑️ ' + t.file.link
		} else if (t.file.tasks.completed.includes(false) && (t.date?.toISODate() <= time) || !t.date) {
			text = '⛓ ' + t.file.link
		} else if (t.date?.toISODate() > time) {
			text = '🗓 ' + t.file.link
		} else {
			text = t.file.link
		}
		if (t.deadline !== null) {
			text = text + " (" + Math.ceil(t.deadline.diff(DateTime.now()).as('days')) + ")"
		}
		return text
	}))
}


### Dataview Version

0.5.19

### Obsidian Version

0.14.6

### OS

MacOS

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
blacksmithgucommented, May 14, 2022

For a simple fix for right now I recommend upping the refresh interval to 2500 or 5000; this doesn’t fix the root problem, but will make it a little less annoying for you.

I’m not quite sure what changed between stable and beta to cause this behavior (the renderer is unchanged), but I think the correct fix is an improvement to the DataviewJS render API to eliminate the annoying refresh behavior in the first place.

1reaction
imeed166commented, Jun 5, 2022

@AB1908 You’re talking to blacksmithgu right ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Screen keeps refreshing itself automatically in ...
If your Windows PC is refreshing itself automatically then there can be multiple reasons for this problem, but the most common is excessive...
Read more >
171316 - Pages constantly reload on Chrome for Android, for ...
It happens with cnet and the verge too. In my experience it happens with all web sites. It's a bug in Chrome for...
Read more >
(HELP) Windows 10 Constantly Refreshes Desktop!
This constant refreshing has caused multiple processes which I have ... -as far as I can tell all excess processes are by Microsoft, ......
Read more >
Bug reporting guidelines - ArchWiki
People will take the time to look at your bug report and will try to help you. You need to continue to help...
Read more >
14867 – Don't force me to refresh all the time - Bugs - Eclipse
You can try using the autorefresh plugin that is found on the core team web page: http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/dev ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found