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.

$interval outputs in the console

See original GitHub issue

When using the $interval methods as follows <div x-data="searchResults()" x-init="$interval(() => pollServer(), {timer: 1000, forceInterval: true})">

I see output in the console, can this be disabled?

true
app.5251e11c.js:32 false
app.5251e11c.js:32 clear 32

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
SimoTodcommented, Nov 10, 2022

@notflip this should be fixed now see 1.0.1

2reactions
SimoTodcommented, Nov 5, 2022

I can’t remember either. Hahaha. I can have a look tomorrow or Monday (I won’t be close to my laptop any time today). We’ve probably never added any automation, I suspect. You definitely need to update the package.json file(s) for npm, tagging on github is just for consistency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Console output one time every 40 seconds with interval doesn ...
My problem is that it continuously streams console. log instead of using setInterval. By stream I mean it outputs console. log multiple times ......
Read more >
Output every second - The Modern JavaScript Tutorial
Write a function printNumbers(from, to) that outputs a number every second, starting from from and ending with to . Make two variants of...
Read more >
Execution on console application functionality with 2min interval
I have an console application in which I have to execute a functionality for every 2min or specified time stamp.
Read more >
CommonOutputAction - MOOSE framework
An action, that acts when the [Outputs] block exists. It adds short-cut syntax options, such as the "exodus" parameter, as well as common...
Read more >
console.time() - Web APIs - MDN Web Docs
The console.time() method starts a timer you can use to track how long an operation takes. You give each timer a unique name,...
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