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.

Event for once the initial load is completed

See original GitHub issue

It would be helpful to have an event once the initial load of all the rss feeds are completed. For example, some people might not want to do anything with the items already existing in the feeds, and could do something like this:

feeder.on('initial-load', function () {
    console.log('Waiting for something new!')
    feeder.on('new-item', function (item) {
        doSomething(item)
    })
})

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
filipedeschampscommented, Nov 28, 2018

@MichaelPriebe technically it’s not abandoned 😃 I’m rearranging my work/life balance to get back to my personal projects 👍

Once I’m back, probably this is the first feature I’m going to implement. The interface probably is going to be different than you suggested. What if you could instantiate the emitter with an option to ignore the first load?

For example:

let feeder = new RssFeedEmitter({ skipFirstLoad: true })
1reaction
TobiTennocommented, Mar 18, 2020

hey @Vezqi, i’m working on adding both the case and the event keyed like… initial-load:${feed.url} with #184

Read more comments on GitHub >

github_iconTop Results From Across the Web

Window: load event - Web APIs - MDN Web Docs - Mozilla
The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images.
Read more >
The First Event: load | Events in JavaScript
The First Event: load. Typically, the first thing you want JavaScript to do is set up the initial state of the page so...
Read more >
Page: DOMContentLoaded, load, beforeunload, unload
The load event on the window object triggers when the whole page is loaded including styles, images and other resources. This event is...
Read more >
Event after initial load
Is there an event that fires after the Datatable has loaded its initial state (first page of data, applied extra widgets etc)?
Read more >
Is there an after Page_Load event in ASP.net
The Load event works the other way around, the page first raises the Load event and then each child control raises its own...
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