Skip to content

Change watcher for the pagerefresh to use cleanup callback function - #188

Merged
sebastianrakel merged 1 commit into
voxpupuli:mainfrom
McSlow:main
Oct 21, 2026
Merged

sebastianrakel merged 1 commit into
voxpupuli:mainfrom
McSlow:main

Conversation

@McSlow

@McSlow McSlow commented Oct 20, 2026

Copy link
Copy Markdown

Instead of using a helper variable use the cleanup call on every change to either clear the intervall ( 0 seconds) or clear the interval and set the new one ( > 0 seconds ). Also use the immediate option to start a watcher init on pageload (which it didn't do before).

Line 33 also suffered from if(false) when 0s is default.

Ref: https://vuejs.org/guide/essentials/watchers.html#side-effect-cleanup

This fixes Issue #187

instead of using a helper variable use the cleanup call on every change to either clear the intervall ( 0 seconds) or clear the interval and set the new one.
Also use the immediate option to start an init on pageload.
@sebastianrakel
sebastianrakel merged commit 8415ce6 into voxpupuli:main Oct 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants