Skip to content

Polling server with setInterval #6322

Answered by DrDanRyan
DrDanRyan asked this question in Q&A
Discussion options

You must be logged in to vote

I think I figured out that you can safely do this in the onMount hook of the main layout and it will then run once and guaranteed to be in the browser.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DrDanRyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant