metafizzy / metafizzy/infinite-scroll

Error listener not working at all

Open
#954 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
7.5k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I don`t know why, but error listener is not working for me.
I want to display a message on the page if selector is not correct or something else goes wrong.

```
// vanilla JS
infScroll.on( 'error', function( error, path, response ) {
console.log('we got error');
document.write(error);
})
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the vanilla JavaScript example using infScroll.on('error', ...) and an invalid selector or other failing request. Trace whether the error callback is reached and verify that the listener can display a message when an error occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.