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.

"skipFirstLoad: true" Doesn't Work?

See original GitHub issue

Hi, I am using this code:

const RssFeedEmitter = require('rss-feed-emitter');
const feeder = new RssFeedEmitter({ skipFirstLoad: true });

feeder.add({
    url: 'http://www.nintendolife.com/feeds/news',
    refresh: 2000
});


feeder.on('new-item', function (item) {
    console.log(item);
})

console.log('Feed watcher bot is listening... ')

but it returns a whole mountain of posts. I would think it shouldn’t return anything but the console.log statement since the skipFirstLoad: true was passed in… 🤔

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
midzercommented, Apr 12, 2020

Can confirm this issue

0reactions
filipedeschampscommented, Apr 14, 2020

🎉 This issue has been resolved in version 3.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery-bootgrid preset current and rowCount - Stack Overflow
I did the following and it works like a dream: 1) In the jquery-bootgrid.js Add an option called skipFirstLoad and set it to...
Read more >
Detect lightning:recordForm change in mode attribute
Mode initialization works only once. After you manually change mode in lightning:recordForm , it doesn't fire neither component, ...
Read more >
fetch_url_error: This URL returned a 524 status code #187
I noticed the error handling has changed so perhaps the timeouts were just getting ignored before instead of throwing the error? Node.js version ......
Read more >
18.1.3.0, E93562-01 Source: authorization/sso-authorization.js
... in app browser when start load last page with token var skipFirstLoad = true; browserRef.addEventListener('loadstart', function (event) { if (utils.
Read more >
rss-feed-emitter - npm
Ignoring the first load of items. const feeder = new RssFeedEmitter({ skipFirstLoad: true }); feeder.add({ url: ...
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