Bug report: excessive refreshing
See original GitHub issueWhat happened?
the query refreshes too much, when editing a file in another pane.
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:
- Created a year ago
- Comments:17 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@AB1908 You’re talking to blacksmithgu right ?